annotate clang/test/PCH/designated-init.c.h @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 static void *FooToken = &FooToken;
anatofuz
parents:
diff changeset
2 static void *FooTable[256] = {
anatofuz
parents:
diff changeset
3 [0x3] = (void *[256]) { // 1
anatofuz
parents:
diff changeset
4 [0x5b] = (void *[256]) { // 2
anatofuz
parents:
diff changeset
5 [0x81] = (void *[256]) { // 3
anatofuz
parents:
diff changeset
6 [0x42] = (void *[256]) { // 4
anatofuz
parents:
diff changeset
7 [0xa2] = (void *[256]) { // 5
anatofuz
parents:
diff changeset
8 [0xe] = (void *[256]) { // 6
anatofuz
parents:
diff changeset
9 [0x20] = (void *[256]) { // 7
anatofuz
parents:
diff changeset
10 [0xd7] = (void *[256]) { // 8
anatofuz
parents:
diff changeset
11 [0x39] = (void *[256]) { // 9
anatofuz
parents:
diff changeset
12 [0xf1] = (void *[256]) { // 10
anatofuz
parents:
diff changeset
13 [0xa4] = (void *[256]) { // 11
anatofuz
parents:
diff changeset
14 [0xa8] = (void *[256]) { // 12
anatofuz
parents:
diff changeset
15 [0x21] = (void *[256]) { // 13
anatofuz
parents:
diff changeset
16 [0x86] = (void *[256]) { // 14
anatofuz
parents:
diff changeset
17 [0x1d] = (void *[256]) { // 15
anatofuz
parents:
diff changeset
18 [0xdc] = (void *[256]) { // 16
anatofuz
parents:
diff changeset
19 [0xa5] = (void *[256]) { // 17
anatofuz
parents:
diff changeset
20 [0xef] = (void *[256]) { // 18
anatofuz
parents:
diff changeset
21 [0x9] = (void *[256]) { // 19
anatofuz
parents:
diff changeset
22 [0x34] = &FooToken,
anatofuz
parents:
diff changeset
23 },
anatofuz
parents:
diff changeset
24 },
anatofuz
parents:
diff changeset
25 },
anatofuz
parents:
diff changeset
26 },
anatofuz
parents:
diff changeset
27 },
anatofuz
parents:
diff changeset
28 },
anatofuz
parents:
diff changeset
29 },
anatofuz
parents:
diff changeset
30 },
anatofuz
parents:
diff changeset
31 },
anatofuz
parents:
diff changeset
32 },
anatofuz
parents:
diff changeset
33 },
anatofuz
parents:
diff changeset
34 },
anatofuz
parents:
diff changeset
35 },
anatofuz
parents:
diff changeset
36 },
anatofuz
parents:
diff changeset
37 },
anatofuz
parents:
diff changeset
38 },
anatofuz
parents:
diff changeset
39 },
anatofuz
parents:
diff changeset
40 },
anatofuz
parents:
diff changeset
41 }
anatofuz
parents:
diff changeset
42 };
anatofuz
parents:
diff changeset
43
anatofuz
parents:
diff changeset
44 struct P1 {
anatofuz
parents:
diff changeset
45 struct Q1 {
anatofuz
parents:
diff changeset
46 char a[6];
anatofuz
parents:
diff changeset
47 char b[6];
anatofuz
parents:
diff changeset
48 } q;
anatofuz
parents:
diff changeset
49 };
anatofuz
parents:
diff changeset
50
anatofuz
parents:
diff changeset
51 struct P1 l1 = {
anatofuz
parents:
diff changeset
52 (struct Q1){ "foo", "bar" },
anatofuz
parents:
diff changeset
53 .q.b = { "boo" },
anatofuz
parents:
diff changeset
54 .q.b = { [1] = 'x' }
anatofuz
parents:
diff changeset
55 };
anatofuz
parents:
diff changeset
56
anatofuz
parents:
diff changeset
57 extern struct Q1 *foo();
anatofuz
parents:
diff changeset
58 static struct P1 test_foo() {
anatofuz
parents:
diff changeset
59 struct P1 l = { *foo(),
anatofuz
parents:
diff changeset
60 .q.b = { "boo" },
anatofuz
parents:
diff changeset
61 .q.b = { [1] = 'x' }
anatofuz
parents:
diff changeset
62 };
anatofuz
parents:
diff changeset
63 return l;
anatofuz
parents:
diff changeset
64 }