comparison gcc/testsuite/g++.dg/lookup/friend21.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 // Unhiding a friend erroneously mutated a binding
2
3 class X
4 {
5 friend void frob (int, int);
6 };
7
8 void frob (int);
9 void frob (int, int);
10
11 void foo ()
12 {
13 frob (1); // Only saw unhidden friend
14 }