gcc/testsuite/gcc.target/i386/pr70689.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target ia32 } */ |
| 3 | /* { dg-options "-O1" } */ |
| 4 | |
| 5 | struct S |
| 6 | { |
| 7 | int f; |
| 8 | }; |
| 9 | |
| 10 | double a; |
| 11 | int c; |
| 12 | |
| 13 | static |
| 14 | void fn1 (struct S *p1) |
| 15 | { |
| 16 | for (; c; ) |
| 17 | if (p1->f++) |
| 18 | a = (int) p1; |
| 19 | } |
| 20 | |
| 21 | int |
| 22 | main () |
| 23 | { |
| 24 | struct S b = { 0 }; |
| 25 | fn1 (&b); |
| 26 | return 0; |
| 27 | } |