summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/eh/unwind-direct.C
blob: 8d2cd772916a5f846cacca0a5bab03be8b10da46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR target/59788
// { dg-do run { target { *-*-solaris2* && { ! gld } } } }
// { dg-options "-Wl,-Bdirect" }

#include <stdexcept>

int
main(void)
{
  try
    { throw std::runtime_error( "Catch me if you can!"); }
  catch(...)
    { return 0; }
  return 1;
}