blob: 3a43d723a3ccc53514a41d4d83cb682d6c73434d [file] [log] [blame]
// RUN: %target-parse-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
_ = 123
#elseif !BLAH
#else
#else // expected-error{{further conditions after #else are unreachable}}
// expected-error@+2{{expected '}' at end of brace statement}}
// expected-error@+1{{expected #else or #endif at end of conditional compilation block}}