[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
2 changed files with 18 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue