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

Subversion Repositories openrisc

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Without explicit prototype, we need to assume the builtin can
2
// throw for builtins that at least on one platform can throw.
3
// { dg-do compile }
4
// { dg-options "-fdump-tree-eh" }
5
 
6
extern void callme (void) throw();
7
 
8
int
9
bar (int i)
10
{
11
  try {
12
    __builtin_printf ("foo %d\n", i);
13
  } catch (...) {
14
    callme();
15
  }
16
}
17
 
18
/* { dg-final { scan-tree-dump-times "resx" 1 "eh" } } */
19
/* { dg-final { cleanup-tree-dump "eh" } } */

powered by: WebSVN 2.1.0

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