mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-18 11:08:26 +00:00
34 lines
306 B
C++
34 lines
306 B
C++
#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);
|
|
}
|