xref: /minix3/external/bsd/llvm/dist/clang/test/Parser/objcxx-at.mm (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -verify %s
2*f4a2713aSLionel Sambuc
3*f4a2713aSLionel Sambuc@interface B {
4*f4a2713aSLionel Sambuc  int i;
5*f4a2713aSLionel Sambuc}
6*f4a2713aSLionel Sambuc@end
7*f4a2713aSLionel Sambuc
8*f4a2713aSLionel Sambucstruct Z {
9*f4a2713aSLionel Sambuc  @defs(B); // expected-error{{@defs is not supported in Objective-C++}}
10*f4a2713aSLionel Sambuc};
11*f4a2713aSLionel Sambuc
12*f4a2713aSLionel Sambucstruct Y { // expected-note{{to match this '{'}}
13*f4a2713aSLionel Sambuc  struct X { } // expected-error{{expected ';' after struct}}
14*f4a2713aSLionel Sambuc    @interface A // expected-error{{unexpected '@' in member specification}}
15*f4a2713aSLionel Sambuc} // expected-error{{expected '}'}} expected-error{{expected ';' after struct}}
16