brintos

brintos / llvm-project-archived public Read only

0
0
Text · 399 B · afb8a44 Raw
30 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify %s2// expected-no-diagnostics3 4@interface Root5-(id) alloc;6-(id) init;7@end8 9@interface A : Root {10  int x;11  int z;12}13@property int x;14@property int y;15@property int z;16@property(readonly) int ro, ro2;17@property (class) int c;18@end19 20@implementation A21@dynamic x;22@synthesize z;23@dynamic c;24@end25 26int test(void) {27  A *a = [[A alloc] init];28  return a.x;29}30