| 1 |
// PR target/59788 |
| 2 |
// { dg-do run { target { *-*-solaris2* && { ! gld } } } } |
| 3 |
// { dg-options "-Wl,-Bdirect" } |
| 4 |
|
| 5 |
#include <stdexcept> |
| 6 |
|
| 7 |
int |
| 8 |
main(void) |
| 9 |
{ |
| 10 |
try |
| 11 |
{ throw std::runtime_error( "Catch me if you can!"); } |
| 12 |
catch(...) |
| 13 |
{ return 0; } |
| 14 |
return 1; |
| 15 |
} |