mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Also move a Parse test that's really about conditional compilation directives into the new folder.
10 lines
390 B
Swift
10 lines
390 B
Swift
// RUN: %target-parse-verify-swift
|
|
|
|
func foo() { // expected-note {{to match this opening '{'}}
|
|
if true {
|
|
} else { // expected-note {{to match this opening '{'}}
|
|
#if BLAH
|
|
// expected-error@+3{{expected '}' at end of brace statement}}
|
|
// expected-error@+2{{expected '}' at end of brace statement}}
|
|
// expected-error@+1{{expected #else or #endif at end of conditional compilation block}}
|