gcc/testsuite/g++.dg/init/array61.C
raw| 1 | // PR c++/92385 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | // { dg-additional-options -fdump-tree-gimple } |
| 4 | // { dg-final { scan-tree-dump-times "item::item" 1 "gimple" { target { ! *-*-darwin* } } } } |
| 5 | // { dg-final { scan-tree-dump-times "item::item" 2 "gimple" { target { *-*-darwin* } } } } |
| 6 | |
| 7 | struct item { |
| 8 | int i; |
| 9 | item(); |
| 10 | }; |
| 11 | |
| 12 | struct item_array { |
| 13 | item a[10]; |
| 14 | item_array(); |
| 15 | }; |
| 16 | |
| 17 | item_array::item_array() : a{} {} |