diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/torture/pr59006.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/torture/pr59006.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr59006.c b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr59006.c new file mode 100644 index 000000000..34de83dac --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr59006.c @@ -0,0 +1,13 @@ +/* { dg-do compile } */ + +int a[8], b; +void fn1(void) +{ + int c; + for (; b; b++) + { + int d = a[b]; + c = a[0] ? d : 0; + a[b] = c; + } +} |