URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [compat/] [eh/] [template1_x.C] - Rev 12
Compare with Previous | Blame | View Log
extern "C" void exit (int);
extern "C" void abort (void);
#include "template1.h"
void template1_x ()
{
int caught = 0;
try
{
C<int> x;
x.f();
}
catch (A)
{
++caught;
}
if (caught != 1)
abort ();
exit (0);
}