diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/execute/930603-2.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.c-torture/execute/930603-2.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/930603-2.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/930603-2.c new file mode 100644 index 000000000..8cf06a211 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/930603-2.c @@ -0,0 +1,19 @@ +int w[2][2]; + +f () +{ + int i, j; + + for (i = 0; i < 2; i++) + for (j = 0; j < 2; j++) + if (i == j) + w[i][j] = 1; +} + +main () +{ + f (); + if (w[0][0] != 1 || w[1][1] != 1 || w[1][0] != 0 || w[0][1] != 0) + abort (); + exit (0); +} |