1 // 12.1: A constructor shall not be declared with a ref-qualifier.
2 // 12.4: A destructor shall not be declared with a ref-qualifier.
4 // { dg-require-effective-target c++11 }
7 A() & = default; // { dg-error "constructor" }
8 ~A() & = default; // { dg-error "destructor" }