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.
18 lines
388 B
Swift
18 lines
388 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
|
|
#if DEBUG
|
|
|
|
#endif ; // expected-error {{extra tokens following conditional compilation directive}}
|
|
|
|
// <rdar://problem/17569958> #endif not parsed correctly when occurs as last line in file
|
|
#if DEBUG
|
|
func debug(msg: String) {
|
|
print(msg)
|
|
}
|
|
#else
|
|
func debug(msg: String) {
|
|
}
|
|
// last line of file - make sure no \n sneaks in below #endif.
|
|
#endif
|