Projet_SETI_RISC-V/riscv-gnu-toolchain/gdb/gold/testsuite/eh_test_b.cc

34 lines
306 B
C++
Raw Normal View History

2023-03-06 14:48:14 +01:00
#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);
}