blob: 5a0ee162fe5750f2d7f48c3d3e03a40f8ab05bd1 [file] [log] [blame]
// 12.1: A constructor shall not be declared with a ref-qualifier.
// 12.4: A destructor shall not be declared with a ref-qualifier.
// { dg-require-effective-target c++11 }
struct A {
A() & = default; // { dg-error "constructor" }
~A() & = default; // { dg-error "destructor" }
};
int main()
{
A a;
}