Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist-array24.C

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