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