Debian Codegraph @

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

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