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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [eh/] [spbp.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-gdwarf-2" } */
3
/* { dg-skip-if "No Dwarf" { { *-*-aix* hppa*-*-hpux* *-*-solaris2.[56]* } && { ! hppa*64*-*-* } } { "*" } { "" } } */
4
 
5
/* This was a bug on x86-darwin, where the register numbering for SP
6
   and BP was swapped (it's easy to do because on that port it's
7
   different for eh_frame and debug_frame).  */
8
 
9
#include 
10
 
11
void f1(int t)
12
{
13
  char u[t];
14
  throw 1;
15
}
16
 
17
int main()
18
{
19
  bool b = true;
20
  try {
21
    f1(100);
22
  } catch (int x) {
23
    if (b)
24
      exit (0);
25
  }
26
  abort ();
27
}

powered by: WebSVN 2.1.0

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