diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/torture/pr57417.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/torture/pr57417.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr57417.c b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr57417.c new file mode 100644 index 000000000..6eac6f932 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr57417.c @@ -0,0 +1,12 @@ +/* { dg-do compile } */ + +int a, b; +volatile int *c; + +void foo () +{ + volatile int d[1]; + b = 0; + for (;; a--) + c = &d[b]; +} |