libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / pr109318.c
blob68e9f62eb37d7742d6435b7c22b361a05cae5d90
1 /* { dg-do run } */
2 /* { dg-options "-O2 -fno-early-inlining" } */
3 /* { dg-require-effective-target int32plus } */
5 #pragma pack(1)
6 struct S {
7 signed : 31;
8 unsigned f4 : 20;
9 };
11 static struct S global;
13 static struct S func_16(struct S *ptr) { return *ptr; }
15 int
16 main()
18 struct S *local = &global;
19 *local = func_16(local);
20 return 0;