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