Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/no_unique_address7a.C

raw
1 // PR c++/93711
2 // { dg-do compile { target c++11 } }
3
4 struct B { };
5 struct A: B { A(const A&) = delete; };
6
7 A f();
8
9 struct C
10 {
11 [[no_unique_address]] A a;
12 };
13
14 C c{f()}; // { dg-error "deleted" }