blob: 453baceb905a39dbea31904fc1406b4fa499469c [file] [log] [blame]
// PR c++/93711
// { dg-do compile { target c++11 } }
struct B { };
struct A: B { A(const A&) = delete; };
A f();
struct C
{
[[no_unique_address]] A a;
};
C c{f()}; // { dg-error "deleted" }