gcc/testsuite/objc.dg/property/property-neg-6.m
raw| 1 | /* Check for proper declaration of @property. */ |
| 2 | /* { dg-do compile } */ |
| 3 | |
| 4 | @interface Bar |
| 5 | { |
| 6 | int iVar; |
| 7 | } |
| 8 | @property int FooBar /* { dg-error "expected ':', ',', ';', '\}' or '__attribute__' at end of input" } */ |
| 9 | /* { dg-error "expected ..end. at end of input" "" { target *-*-* } .-1 } */ |