Files
swift-mirror/test/SourceKit/Sema/sema_config.swift
Argyrios Kyrtzidis 8ff6a98a99 [sourcekit] Merge SourceKit into the Swift repo.
The code goes into its own sub-tree under 'tools' but tests go under 'test',
so that running 'check-swift' will also run all the SourceKit tests.

SourceKit is disabled on non-darwin platforms.
2015-11-05 01:09:08 -08:00

13 lines
281 B
Swift

var x = 0
#if FOO
x = 1
#else
x = 2
#endif
// RUN: %sourcekitd-test -req=sema %s -- %s > %t.false.response
// RUN: diff -u %s.false.response %t.false.response
// RUN: %sourcekitd-test -req=sema %s -- %s -D FOO > %t.true.response
// RUN: diff -u %s.true.response %t.true.response