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