blob: 5a0ee162fe5750f2d7f48c3d3e03a40f8ab05bd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// 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;
}
|