1// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s 2// rdar://11939584 3 4@interface PodiumWalkerController 5@property (assign) id PROP; 6- (void) // expected-error {{expected ';' after method prototype}} 7@end // expected-error {{expected selector for Objective-C method}} 8 9 10id GVAR; 11 12id StopProgressAnimation() 13{ 14 15 PodiumWalkerController *controller; 16 return controller.PROP; 17} 18 19@interface P1 20@property (assign) id PROP; 21- (void); // expected-error {{expected selector for Objective-C method}} 22@end 23 24id GG=0; 25 26id Stop1() 27{ 28 29 PodiumWalkerController *controller; 30 return controller.PROP; 31} 32 33@interface P2 34@property (assign) id PROP; 35- (void)Meth {} // expected-error {{expected ';' after method prototype}} 36@end 37 38@interface P3 39@property (assign) id PROP; 40- (void) 41- (void)Meth {} // expected-error {{expected selector for Objective-C method}} \ 42 // expected-error {{expected ';' after method prototype}} 43@end 44 45id HH=0; 46 47id Stop2() 48{ 49 50 PodiumWalkerController *controller; 51 return controller.PROP; 52} 53