Debian Codegraph @

clang/test/Parser/missing-selector-name.mm

raw
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
9 id GVAR;
10
11 id StopProgressAnimation()
12 {
13
14 PodiumWalkerController *controller;
15 return 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
23 id GG=0;
24
25 id Stop1()
26 {
27
28 PodiumWalkerController *controller;
29 return 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
44 id HH=0;
45
46 id Stop2()
47 {
48
49 PodiumWalkerController *controller;
50 return controller.PROP;
51 }