mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
A parse-only option is needed for parse performance tracking and the current option also includes semantic analysis.
11 lines
366 B
Swift
11 lines
366 B
Swift
// RUN: %target-typecheck-verify-swift -D BLAH
|
|
|
|
// Check that if config statement has range properly nested in its parent
|
|
// EOF.
|
|
|
|
func foo() { // expected-note {{to match this opening '{'}}
|
|
#if BLAH
|
|
#elseif !BLAH
|
|
// expected-error@+2{{expected '}' at end of brace statement}}
|
|
// expected-error@+1{{expected #else or #endif at end of conditional compilation block}}
|