gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gold / testsuite / eh_test_b.cc
CommitLineData
cfbf0e3c
RÁE
1#include <iostream>
2#include <cstdlib>
3
4void
5foo()
6{
7}
8
698400bf
CC
9template<typename C>
10void
11bar(C*)
12{
13}
14
15template
16void
17bar<int>(int*);
18
cfbf0e3c
RÁE
19int
20main()
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.264256 seconds and 4 git commands to generate.