diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/pr56448.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr56448.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr56448.c b/gcc/testsuite/gcc.c-torture/compile/pr56448.c new file mode 100644 index 00000000000..f10da6ce752 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr56448.c @@ -0,0 +1,14 @@ +/* PR tree-optimization/56448 */ + +volatile int a[1]; +int b; + +void +foo () +{ + for (;;) + { + int *c[3][6] = { 0, 0, 0, &b, 0, 0, 0, 0, &b, 0, 0, 0, 0, 0, 0, 0, &b, (int *) &a[0] }; + b = *c[2][5]; + } +} |