50538df4b8c6c25ca5c563965ed8869c5e0dbc09
[deliverable/binutils-gdb.git] / gold / testsuite / eh_test_b.cc
1 #include <iostream>
2 #include <cstdlib>
3
4 void
5 foo()
6 {
7 }
8
9 int
10 main()
11 {
12 try
13 {
14 throw(1);
15 }
16 catch(int)
17 {
18 std::cout << "caught" << std::endl;
19 exit(0);
20 }
21 std::cout << "failed" << std::endl;
22 exit(1);
23 }
This page took 0.030154 seconds and 3 git commands to generate.