Files
swift-mirror/test/Parse/ConditionalCompilation/pound-if-inside-function-2.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

11 lines
362 B
Swift

// 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
#elseif !BLAH
// expected-error@+2{{expected '}' at end of brace statement}}
// expected-error@+1{{expected #else or #endif at end of conditional compilation block}}