OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [eh/] [terminate1.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// 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
// Also there should only be two EH call sites: #0 for throw A() and #1 for
11
// _Unwind_Resume.  We don't want call site info for __cxa_end_catch, since
12
// ~A is trivial.
13
 
14
// { dg-final { scan-assembler-not "LEHB2" } }
15
 
16
struct A
17
{
18
  A() { }
19
  A (const A&) { throw 1; }
20
};
21
 
22
int main()
23
{
24
  try
25
    {
26
      throw A();
27
    }
28
  catch (A) { }
29
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.