gdb: add target_ops::supports_displaced_step
[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 template<typename C>
10 void
11 bar(C*)
12 {
13 }
14
15 template
16 void
17 bar<int>(int*);
18
19 int
20 main()
21 {
22 try
23 {
24 throw(1);
25 }
26 catch(int)
27 {
28 std::cout << "caught" << std::endl;
29 exit(0);
30 }
31 std::cout << "failed" << std::endl;
32 exit(1);
33 }
This page took 0.030246 seconds and 4 git commands to generate.