gcc/testsuite/gcc.dg/pr53358.c
raw| 1 | /* PR target/53358 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2" } */ |
| 4 | /* { dg-additional-options "-fpic" { target fpic } } */ |
| 5 | /* { dg-additional-options "-mtune=pentium4" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ |
| 6 | |
| 7 | struct S { unsigned char s, t[17]; }; |
| 8 | int bar (void); |
| 9 | |
| 10 | void |
| 11 | foo (struct S *x) |
| 12 | { |
| 13 | unsigned char i, z; |
| 14 | if (bar ()) |
| 15 | { |
| 16 | z = bar (); |
| 17 | bar (); |
| 18 | x->s += z; |
| 19 | for (i = 0; i < x->s; i++) |
| 20 | x->t[i] = bar (); |
| 21 | } |
| 22 | } |