OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
./
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
friend8.C
1
// Test that we look up a friend declared at top level ahead of an
2
// undeclared friend found by argument dependent lookup.
3
4
// { dg-do run }
5
6
int f(int) { return 0; }
7
8
struct S {
9
friend int f(char) { return 1; }
10
};
11
12
int main () { return f('a'); }