Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/dr1560.C

raw
1 // Core 1560
2 // { dg-do compile { target c++14 } }
3
4 struct A
5 {
6 A();
7 A(const A&) = delete;
8 };
9
10 void f(bool b)
11 {
12 A a;
13 b ? a : throw 42;
14 }