OSDN Git Service

* name-lookup.c (current_decl_namespace): Non-static.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / eh / omit-frame-pointer.C
1 // { dg-do run }
2 // { dg-options -fomit-frame-pointer }
3
4 #include <iostream>
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 }