summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.eh/ctor1.C
blob: 9874131a44dfd4a903ab441538ce0f80437e2df0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
struct A
{
  A();
  A(A&);			// ERROR - referenced below
};

int
main ()
{
  try
    {
      throw A();		// ERROR - can't copy
    }
  catch (...) { }
}