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/] [omit-frame-pointer.C] - Blame information for rev 841

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do run }
2
// { dg-options -fomit-frame-pointer }
3
 
4
#include 
5
 
6
class Bug
7
{
8
};
9
 
10
int throw_bug()
11
{
12
        throw Bug();
13
 
14
        return 0;
15
}
16
 
17
int main()
18
{
19
        try {
20
                std::cout << throw_bug();
21
        } catch (Bug bug) {
22
        };
23
 
24
        return 0;
25
}

powered by: WebSVN 2.1.0

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