gcc/testsuite/g++.dg/cpp0x/initlist-array23.C
raw| 1 | // PR c++/117985 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | struct _Vector_impl { |
| 5 | constexpr |
| 6 | _Vector_impl() {} |
| 7 | }; |
| 8 | struct _Vector_base { |
| 9 | ~_Vector_base(); |
| 10 | _Vector_impl _M_impl; |
| 11 | }; |
| 12 | struct vector : private _Vector_base {}; |
| 13 | struct string { |
| 14 | string(); |
| 15 | }; |
| 16 | struct VEC { |
| 17 | vector pane{}; |
| 18 | }; |
| 19 | struct FOO { |
| 20 | VEC screen[1]{}; |
| 21 | string debug_name; |
| 22 | }; |
| 23 | |
| 24 | int |
| 25 | main () |
| 26 | { |
| 27 | FOO{}; |
| 28 | } |