blob: e8369ca764ccce6f673fc3e7e9c3d34423d101b4 [file] [log] [blame]
// { dg-do run }
// try throwing 0 cast to a class object
extern "C" void abort ();
extern "C" void exit (int);
struct A {};
void f()
{
throw (A*)0;
}
int
main()
{
int flag;
flag = 0;
try {
f();
}
catch (A*) {
flag = 1;
}
if (!flag)
abort();
exit (0);
}