mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
18 lines
477 B
Swift
18 lines
477 B
Swift
// RUN: %target-swift-ide-test -source-filename %s -annotate 2>&1 >/dev/null | %FileCheck %s -check-prefix=CHECK-%target-runtime
|
|
|
|
#if _runtime(_ObjC)
|
|
foo
|
|
// CHECK-objc: cannot find 'foo' in scope
|
|
// CHECK-objc-NOT: cannot find 'bar' in scope
|
|
// CHECK-objc-NOT: cannot find 'baz' in scope
|
|
|
|
#elseif _runtime(_Native)
|
|
bar
|
|
// CHECK-native-NOT: cannot find 'foo' in scope
|
|
// CHECK-native: cannot find 'bar' in scope
|
|
// CHECK-native-NOT: cannot find 'baz' in scope
|
|
|
|
#else
|
|
baz
|
|
#endif
|