| 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
|---|---|
| 2 | |
| 3 | @interface B { |
| 4 | int i; |
| 5 | } |
| 6 | @end |
| 7 | |
| 8 | struct Z { |
| 9 | @defs(B); // expected-error{{@defs is not supported in Objective-C++}} |
| 10 | }; |
| 11 | |
| 12 | struct 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 |