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.
17 lines
481 B
Swift
17 lines
481 B
Swift
// RUN: %target-parse-verify-swift
|
|
|
|
#if 0 // expected-error {{'0' is not a valid conditional compilation expression, use 'false'}} {{5-6=false}}
|
|
let x = 1
|
|
#endif
|
|
|
|
#if 1 // expected-error {{'1' is not a valid conditional compilation expression, use 'true'}} {{5-6=true}}
|
|
let x = 1
|
|
#endif
|
|
|
|
|
|
// expected-error@+1{{invalid conditional compilation expression}}
|
|
#if 6
|
|
var u: V { didSet {} }
|
|
|
|
// expected-error@+1{{expected #else or #endif at end of conditional compilation block}}
|