mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Also, add more tests for the "os" and "arch" target configurations, to exercise likely build configurations for iOS and the iOS simulator. Swift SVN r14307
15 lines
252 B
Swift
15 lines
252 B
Swift
// RUN: %swift -parse %s -verify -D FOO
|
|
|
|
// This test is meant to ensure that mixes of top-level declarations, statements
|
|
// and expressions within #if blocks parse correctly
|
|
var x = 0
|
|
#if FOO
|
|
class C{}
|
|
x = x+1
|
|
#endif
|
|
|
|
#if FOO
|
|
x = x+1
|
|
class D{}
|
|
#endif
|