blob: 154856a648b7d67236d1d9d26188dd051a97e480 [file] [log] [blame]
// RUN: %target-typecheck-verify-swift -D FOO
// Test case for statements in #if block in types.
func foo() {}
struct S1 { // expected-note 2 {{in declaration of 'S1'}}
#if FOO
return 1; // expected-error {{expected declaration}}
#elseif BAR
foo(); // expected-error {{expected declaration}}
#endif
}