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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Make sure that we force an LSDA for a throw() spec with -fnothrow-opt so
2
// that the personality routine will call terminate.  Also check that we
3
// optimize away the EH cleanup for var because the personality routine
4
// will call terminate before unwinding: there should not be an EH region
5
// (i.e. LEHB/LEHE labels) around the call to g().
6
 
7
// { dg-final { scan-assembler-not "_ZSt9terminatev" } }
8
// { dg-final { scan-assembler-not "EHB" } }
9
// { dg-final { scan-assembler "LSDA" } }
10
 
11
// { dg-options "-fnothrow-opt" }
12
 
13
struct A { ~A(); };
14
void g();
15
void f() throw()
16
{
17
  A var;
18
  g();
19
}

powered by: WebSVN 2.1.0

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