blob: 317627a69410ae0a66807f2dd9aeb715faf011e4 [file] [log] [blame]
// { dg-do assemble }
struct A {
A();
A(A); // { dg-error "3:invalid constructor" } copy ctor must take reference
};
int main()
{
A a;
A b(a); // causes compiler segfault
}