Files
swift-mirror/test/Parse/ConditionalCompilation/pound-if-inside-statement-2.swift
David Farler b7d17b25ba Rename -parse flag to -typecheck
A parse-only option is needed for parse performance tracking and the
current option also includes semantic analysis.
2016-11-28 10:50:55 -08:00

10 lines
402 B
Swift

// RUN: %target-typecheck-verify-swift -D BLAH
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}}