16 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3@interface B {4 int i;5}6@end7 8struct Z {9 @defs(B); // expected-error{{@defs is not supported in Objective-C++}}10};11 12struct Y { // expected-note{{to match this '{'}}13 struct X { } // expected-error{{expected ';' after struct}}14 @interface A // expected-error{{unexpected '@' in member specification}}15} // expected-error{{expected '}'}} expected-error{{expected ';' after struct}}16