Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/defaulted6.C

raw
1 // PR c++/37906
2 // { dg-do compile { target c++11 } }
3
4 struct b
5 {
6 b() = default;
7 b(const b&) = delete;
8 };
9
10 void test01()
11 {
12 static_assert(__has_trivial_constructor(b), "default ctor not trivial");
13 }