OSDN Git Service

PR c++/44127
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / eh / terminate1.C
1 // PR c++/44127
2
3 // This is basically the same test as g++.eh/terminate1.C, but that one
4 // tests runtime behavior and this tests the assembly output.  The test
5 // should call terminate (because initializing the catch parm throws), but
6 // from the personality routine, not directly.
7
8 // { dg-final { scan-assembler-not "_ZSt9terminatev" } }
9
10 struct A
11 {
12   A() { }
13   A (const A&) { throw 1; }
14 };
15
16 int main()
17 {
18   try
19     {
20       throw A();
21     }
22   catch (A) { }
23 }