Debian Codegraph @

gcc/testsuite/g++.target/i386/pr35513-1.C

raw
1 // { dg-do run { target { *-*-linux* && property_1_needed } } }
2 // { dg-options "-O2 -mno-direct-extern-access" }
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 }