OSDN Git Service

New test
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.eh / ctor1.C
1 struct A
2 {
3   A();
4   A(A&);                        // ERROR - referenced below
5 };
6
7 int
8 main ()
9 {
10   try
11     {
12       throw A();                // ERROR - can't copy
13     }
14   catch (...) { }
15 }