Files
swift-mirror/test/Parse/ConditionalCompilation/endif-on-end-of-file.swift
Jordan Rose 7954be4d87 [test] Move BuildConfigurations/ to Parse/ConditionalCompilation/.
Also move a Parse test that's really about conditional compilation
directives into the new folder.
2016-02-12 11:10:32 -08:00

17 lines
383 B
Swift

// RUN: %target-parse-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