New test case.
From-SVN: r24854
This commit is contained in:
parent
36b01134ff
commit
3f7547f7c3
1 changed files with 12 additions and 0 deletions
12
gcc/testsuite/g++.old-deja/g++.martin/overload1.C
Normal file
12
gcc/testsuite/g++.old-deja/g++.martin/overload1.C
Normal file
|
@ -0,0 +1,12 @@
|
|||
//Overload resolution should consider both declarations of func identically.
|
||||
|
||||
struct S{};
|
||||
void func(S&){}
|
||||
|
||||
int main()
|
||||
{
|
||||
void func(S&);
|
||||
S s;
|
||||
func(s);
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue