gcc/testsuite/g++.dg/vect/pr37174.cc
raw| 1 | /* { dg-do compile } */ |
| 2 | |
| 3 | int* getFoo(); |
| 4 | struct Bar { |
| 5 | Bar(); |
| 6 | int* foo1; |
| 7 | int* foo2; |
| 8 | int* table[4][4][4]; |
| 9 | }; |
| 10 | Bar::Bar() { |
| 11 | foo1 = getFoo(); |
| 12 | foo2 = getFoo(); |
| 13 | for (int a = 0; a < 4; ++a) { |
| 14 | for (int b = 0; b < 4; ++b) { |
| 15 | for (int c = 0; c < 4; ++c) { |
| 16 | table[a][b][c] = foo1; |
| 17 | } |
| 18 | } |
| 19 | } |
| 20 | } |
| 21 | |
| 22 |