aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite/eh_test_b.cc
blob: 3bf96e9d3cad0e6f41faa3a1afcd12df5cf072f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <iostream>
#include <cstdlib>

void
foo()
{
}

template<typename C>
void
bar(C*)
{
}

template
void
bar<int>(int*);

int
main()
{
  try
    {
      throw(1);
    }
  catch(int)
    {
      std::cout << "caught" << std::endl;
      exit(0);
    }
  std::cout << "failed" << std::endl;
  exit(1);
}