diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/torture/pr48694-2.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/torture/pr48694-2.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr48694-2.c b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr48694-2.c new file mode 100644 index 000000000..4791ac3f7 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr48694-2.c @@ -0,0 +1,20 @@ +/* { dg-do compile } */ + +extern volatile int g_4[1][4]; +extern int g_7; +void modify(int *); +void func_2() +{ + int l_46 = 4; + if (g_7) + modify(&l_46); + else + { + int i; + for (i = 0; i != 5; i += 1) + { + volatile int *vp = &g_4[0][l_46]; + *vp = 0; + } + } +} |