OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [eh/] [builtin3.C] - Blame information for rev 301

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

Line No. Rev Author Line
1 301 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
struct A { A (); ~A (); int i; };
7
 
8
int
9
bar ()
10
{
11
  A a;
12
  __builtin_printf ("foo %d\n", a.i);
13
}
14
 
15
/* { dg-final { scan-tree-dump-times "resx" 1 "eh" } } */
16
/* { 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.