rt_gccstream/gcc/testsuite/g++.old-deja/g++.robertl/ice990323-5.C

13 lines
187 B
C

// { dg-do assemble }
// check attempting to throw an overloaded function
struct A {
void f(int);
void f(long);
};
void g()
{
throw &A::f; // { dg-error "" } insufficient context
}