StmtPrinter: factor out arg printing code to PrintCallArgs
[clang.git] / test / ASTMerge / Inputs / struct1.c
blobaf2af8abc42ada53870422a6d356b003577b0154
1 typedef int Int;
2 typedef float Float;
4 // Matches
5 struct S0 {
6 Int field1;
7 Float field2;
8 };
10 struct S0 x0;
12 // Mismatch in field type
13 struct S1 {
14 Int field1;
15 int field2;
18 struct S1 x1;
20 // Mismatch in tag kind.
21 struct S2 { int i; float f; } x2;
23 // Missing fields
24 struct S3 { int i; float f; double d; } x3;
26 // Extra fields
27 struct S4 { int i; } x4;
29 // Bit-field matches
30 struct S5 { int i : 8; unsigned j : 8; } x5;
32 // Bit-field mismatch
33 struct S6 { int i : 8; unsigned j : 8; } x6;
35 // Bit-field mismatch
36 struct S7 { int i : 8; unsigned j : 8; } x7;
38 // Incomplete type
39 struct S8 *x8;
41 // Incomplete type
42 struct S9 { int i; float f; } *x9;
44 // Incomplete type
45 struct S10 *x10;
47 // Matches
48 struct ListNode {
49 int value;
50 struct ListNode *Next;
51 } xList;
53 // Mismatch due to struct used internally
54 struct DeepError {
55 int value;
56 struct DeeperError { int i; int f; } *Deeper;
57 } xDeep;
59 // Matches
60 struct {
61 Int i;
62 float f;
63 } x11;