summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/crash8.C
blob: 061652db2257ad00c07dd95328497f3a845b7f96 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
struct A {
  A();
  A(A);				// { dg-error "" } copy ctor must take reference
};
int main()
{
  A a;
  A b(a);			// causes compiler segfault
}