Debian Codegraph @

gcc/testsuite/gcc.dg/lto/pr85870_0.c

raw
1 /* PR c/85870 */
2 /* { dg-lto-do link } */
3 /* { dg-lto-options { { -flto -O2 } } } */
4 /* { dg-extra-ld-options { -r -nostdlib -flinker-output=nolto-rel } } */
5
6 typedef unsigned uint32_t __attribute__((mode (__SI__)));
7
8 typedef struct abc_s {
9 char a1;
10 short a2;
11 uint32_t a3;
12 uint32_t a4;
13 } abc;
14
15 typedef struct xyz_s {
16 uint32_t x1;
17 uint32_t x2;
18 abc *x3;
19 } xyz;
20
21 extern xyz XYZ[3];
22 static const abc Arr1[]={
23 {0,0,0xdeadbeaf,0xbeefdead} ,
24 #line 1040
25 {0,0,0xdeadbeaf,0xbeefdead} };
26
27 void init_xyz_0() {
28 XYZ[0].x1=975753;
29 XYZ[0].x2=1024;
30 XYZ[0].x3=(abc *)Arr1;
31
32 }
33
34 int
35 main ()
36 {
37 }