Debian Codegraph @

clang/test/Rewriter/rewrite-modern-private-ivars.mm

raw
1 // RUN: %clang_cc1 -fblocks -rewrite-objc -fms-extensions %s -o %t-rw.cpp
2 // RUN: %clang_cc1 -Werror -fsyntax-only -Wno-address-of-temporary -Wno-c++11-narrowing -std=c++11 -D"Class=void*" -D"id=void*" -D"SEL=void*" -U__declspec -D"__declspec(X)=" %t-rw.cpp
3
4 struct Q {
5 int x;
6 };
7
8 @interface I
9 @end
10
11 @interface I() {
12
13 struct {
14 int x;
15 } unnamed;
16
17 struct S {
18 int x;
19 } foo;
20
21 double dd;
22
23 struct S foo1;
24 }
25 @end
26
27 @implementation I
28 {
29 struct P {
30 int x;
31 } bar;
32
33 double ee;
34
35 struct Q bar1;
36
37 struct {
38 int x;
39 } noname;
40 }
41
42 - (void) Meth {
43 foo.x = 1;
44 bar.x = 2;
45 dd = 1.23;
46 ee = 0.0;
47 foo1.x = 3;
48 bar1.x = 4;
49 noname.x = 3;
50 unnamed.x = 10;
51 }
52 @end