summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/property/property-neg-2.mm
blob: f730fe846442ffd8238ad391a64511ed3082743a (plain)
1
2
3
4
5
6
7
8
/* { dg-do compile } */

@interface Bar
@end

@implementation Bar
@property int FooBar; /* { dg-error "property declaration not in @interface or @protocol context" } */
@end