☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
no_unique_address7a.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/no_unique_address7a.C
code
plain
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" }