tree-optimization/116481 - avoid building function_type[]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / pr104031.C
blob5f736621ae1959151051ce2ce1e2a4fa29b05f08
1 // PR c++/104031
2 // { dg-do run { target c++14 } }
3 // { dg-options "-O2" }
5 struct A {
6   A () {}
7   ~A () {}
8 };
9 struct B {
10   A a;
11   int b = 0;
13 struct C
15   [[gnu::noipa]]
16   C (B x) { if (x.b != 42) __builtin_abort (); }
18 static C c ({ .a = A{}, .b = 42 });
20 int
21 main ()