1/* { dg-do compile } */ 2 3#include <objc/objc.h> 4 5@interface MyRootClass 6{ 7 Class isa; 8} 9@end 10 11@implementation MyRootClass 12@end 13 14@dynamic isa; /* { dg-error "misplaced .@dynamic. Objective-C.. construct" } */ 15 16@interface Test : MyRootClass 17{ 18 int v1; 19 int v2; 20 int v3; 21 int v4; 22} 23@property int v1; 24@property int v2; 25@property int v3; 26@property int v4; 27@end 28 29@implementation Test 30@dynamic; /* { dg-error "expected identifier" } */ 31@dynamic v1, ; /* { dg-error "expected identifier" } */ 32@dynamic v1, v2, v3; 33@dynamic v4; 34@end 35