gcc/testsuite/gcc.target/powerpc/pr80101-1.c
raw| 1 | /* { dg-do compile { target { powerpc*-*-* } } } */ |
| 2 | /* { dg-require-effective-target dfp_hw } */ |
| 3 | /* { dg-options "-mdejagnu-cpu=power6 -mno-sched-epilog -Ofast" } */ |
| 4 | |
| 5 | /* Prior to resolving PR 80101, this test case resulted in an internal |
| 6 | compiler error. The role of this test program is to assure that |
| 7 | dejagnu's "test for excess errors" does not find any. */ |
| 8 | |
| 9 | int b; |
| 10 | |
| 11 | void e (); |
| 12 | |
| 13 | int c () |
| 14 | { |
| 15 | struct |
| 16 | { |
| 17 | int a[b]; |
| 18 | } d; |
| 19 | if (d.a[0]) |
| 20 | e (); |
| 21 | } |