tree-optimization/116481 - avoid building function_type[]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / dr1560.C
blobb21ca98e2797e3cdfa448e688c547e3911c45e80
1 // Core 1560
2 // { dg-do compile { target c++14 } }
4 struct A
6   A();
7   A(const A&) = delete;
8 };
10 void f(bool b)
12   A a;
13   b ? a : throw 42;