[C++ PATCH] missed testcase
https://gcc.gnu.org/ml/gcc-patches/2018-10/msg02065.html * g++.dg/lookup/friend21.C: New. From-SVN: r265697
This commit is contained in:
parent
ab5324fb68
commit
d459595b53
@ -1,3 +1,7 @@
|
||||
2018-10-31 Nathan Sidwell <nathan@acm.org>
|
||||
|
||||
* g++.dg/lookup/friend21.C: New.
|
||||
|
||||
2018-10-31 Martin Liska <mliska@suse.cz>
|
||||
|
||||
PR driver/83193
|
||||
|
14
gcc/testsuite/g++.dg/lookup/friend21.C
Normal file
14
gcc/testsuite/g++.dg/lookup/friend21.C
Normal file
@ -0,0 +1,14 @@
|
||||
// Unhiding a friend erroneously mutated a binding
|
||||
|
||||
class X
|
||||
{
|
||||
friend void frob (int, int);
|
||||
};
|
||||
|
||||
void frob (int);
|
||||
void frob (int, int);
|
||||
|
||||
void foo ()
|
||||
{
|
||||
frob (1); // Only saw unhidden friend
|
||||
}
|
Loading…
Reference in New Issue
Block a user