Debian Codegraph @

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

raw
1 // { dg-do compile { target c++11 } }
2
3 template <class T> struct wrap
4 {
5 T t;
6 wrap(const wrap& other) : t(other.t) {}
7 };
8
9 struct nocopy {
10 nocopy (const nocopy&) = delete;
11 };
12
13 int main ()
14 {
15 static_assert(!__is_trivially_constructible(wrap<nocopy>,
16 const wrap<nocopy>&), "");
17 return 0;
18 }