rt_gccstream/gcc/testsuite/g++.dg/overload/error1.C

8 lines
134 B
C

// { dg-do compile }
struct S
{
void f () {} // { dg-error "with" "" }
int f () { return 0; } // { dg-error "overloaded" "" }
};