gcc/testsuite/gcc.dg/ipa/pr57347.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-options "-O3" } */ |
| 3 | |
| 4 | struct S1 { int f0; int f1 : 10; int f2 : 13; }; |
| 5 | int i; |
| 6 | int *j = &i; |
| 7 | |
| 8 | static void |
| 9 | foo (struct S1 s) |
| 10 | { |
| 11 | int *p; |
| 12 | int l[88]; |
| 13 | int **pp = &p; |
| 14 | *pp = &l[1]; |
| 15 | l[0] = 1; |
| 16 | *j = 1 && s.f2; |
| 17 | } |
| 18 | |
| 19 | int |
| 20 | main () |
| 21 | { |
| 22 | struct S1 s = { 0, 0, 1 }; |
| 23 | foo (s); |
| 24 | if (i != 1) |
| 25 | __builtin_abort (); |
| 26 | return 0; |
| 27 | } |