gcc/testsuite/objc.dg/pr48187.m
raw| 1 | /* { dg-do compile } */ |
| 2 | |
| 3 | @interface A |
| 4 | { |
| 5 | ] /* { dg-error "xpected" } */ |
| 6 | } |
| 7 | @end |
| 8 | |
| 9 | @interface B |
| 10 | { |
| 11 | ]; /* { dg-error "xpected" } */ |
| 12 | } |
| 13 | @end |
| 14 | |
| 15 | @interface C |
| 16 | { |
| 17 | ]; /* { dg-error "xpected" } */ |
| 18 | int x; |
| 19 | } |
| 20 | @end |
| 21 | |
| 22 | @interface D |
| 23 | { |
| 24 | ) /* { dg-error "xpected" } */ |
| 25 | } |
| 26 | @end |
| 27 | |
| 28 | @interface E |
| 29 | { |
| 30 | ); /* { dg-error "xpected" } */ |
| 31 | } |
| 32 | @end |
| 33 | |
| 34 | @interface F |
| 35 | { |
| 36 | ); /* { dg-error "xpected" } */ |
| 37 | int x; |
| 38 | } |
| 39 | @end |