Debian Codegraph @

clang/test/Rewriter/unnamed-bf-modern-write.mm

raw
1 // RUN: %clang_cc1 -E %s -o %t.mm
2 // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %t.mm -o - | FileCheck %s
3
4 @interface Foo {
5 @private
6 int first;
7 int :1;
8 int third :1;
9 int :1;
10 int fifth :1;
11 }
12 @end
13 @implementation Foo
14 @end
15
16 // CHECK: struct Foo__T_1 {
17 // CHECK-NEXT: int : 1;
18 // CHECK-NEXT: int third : 1;
19 // CHECK-NEXT: int : 1;
20 // CHECK-NEXT: int fifth : 1;
21 // CHECK-NEXT: char : 0;
22 // CHECK-NEXT: } ;
23 // CHECK: struct Foo_IMPL {
24 // CHECK-NEXT: int first;
25 // CHECK-NEXT: struct Foo__T_1 Foo__GRBF_1;
26 // CHECK-NEXT: };