rt_gccstream/gcc/testsuite/g++.old-deja/g++.martin/overload1.C

14 lines
176 B
C

// { dg-do run }
//Overload resolution should consider both declarations of func identically.
struct S{};
void func(S&){}
int main()
{
void func(S&);
S s;
func(s);
}