Debian Codegraph @

gcc/testsuite/g++.dg/ext/is_trivially_constructible4.C

raw
1 // { dg-do compile { target c++11 } }
2
3 #define SA(X) static_assert((X),#X)
4
5 void f()
6 {
7 int x;
8 auto l = [=]{ return x; };
9 typedef decltype(l) C;
10 SA(__is_trivially_copyable(C));
11 SA(__is_trivially_constructible(C,C));
12 }