Debian Codegraph @

gcc/testsuite/gcc.dg/lto/pr117288_0.c

raw
1 /* PR lto/117288 */
2 /* { dg-lto-do link } */
3 /* { dg-lto-options { "-O0 -flto" } } */
4
5 __attribute__((noipa)) static void
6 foo (const void *x)
7 {
8 (void) x;
9 }
10
11 static void
12 bar (void)
13 {
14 unsigned char a[81] = {
15 0x16, 0xfe, 0xfd, 0x00, 0x00, 0x00, 0x00, 0x00,
16 0x00, 0x00, 0x00, 0x01, 0xfa, 0x01, 0x00, 0x01,
17 0xee, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
18 0xee, 0xfe, 0xfd, 0xc0, 0xca, 0xb5, 0x6f, 0x3d,
19 0x23, 0xcc, 0x53, 0x9a, 0x67, 0x17, 0x70, 0xd3,
20 0xfb, 0x23, 0x16, 0x9e, 0x4e, 0xd6, 0x7e, 0x29,
21 0xab, 0xfa, 0x4c, 0xa5, 0x84, 0x95, 0xc3, 0xdb,
22 0x21, 0x9a, 0x52, 0x00, 0x00, 0x00, 0x36, 0x13,
23 0x01, 0x13, 0x02, 0x13, 0x03, 0xc0, 0x2c, 0xc0,
24 0x2b, 0xc0, 0x30, 0xc0, 0x2f, 0x00, 0x9f, 0x00,
25 0x9e,
26 };
27 foo (&a);
28 }
29
30 static void
31 baz (void)
32 {
33 const struct S
34 {
35 unsigned char a[32];
36 int b;
37 unsigned char c[32];
38 int d;
39 unsigned char e[32];
40 int f;
41 unsigned char g[80];
42 int h;
43 unsigned char i[80];
44 int j;
45 } s = {
46 { 0x00, }, 16,
47 { 0x4f, }, 16,
48 { 0x00 }, 0,
49 { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
50 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
51 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
52 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
53 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22,
54 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22,
55 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33,
56 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33,
57 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44,
58 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44 }, 80,
59 { 0xe9, }, 80,
60 };
61
62 foo (s.g);
63 }
64
65 __attribute__((noipa)) static void
66 qux (const void (*x) (void))
67 {
68 (void) x;
69 }
70
71 int
72 main ()
73 {
74 qux (&baz);
75 qux (&bar);
76 }