aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/crash8.C
blob: 4482a43f4bcecf45a31c17402f3027ec88fd9348 (plain)
1
2
3
4
5
6
7
8
9
struct A {
  A();
  A(A);				// ERROR - copy ctor must take reference
};
main()
{
  A a;
  A b(a);			// causes compiler segfault
}