gcc/testsuite/g++.dg/init/array34.C
raw| 1 | // PR c++/53650 |
| 2 | // We should loop over array inits if they don't involve temporaries |
| 3 | // that need extending. |
| 4 | // { dg-options "-fdump-tree-gimple" } |
| 5 | // { dg-final { scan-tree-dump-times "Class::Class" 1 "gimple" } } |
| 6 | |
| 7 | struct Class { |
| 8 | Class(); |
| 9 | }; |
| 10 | |
| 11 | int main() { |
| 12 | Class table [10] = {}; |
| 13 | return 0; |
| 14 | } |