OSDN Git Service

PR c++/51553
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / defaulted6.C
1 // PR c++/37906
2 // { dg-options "-std=c++0x" }
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 }