repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.ns
/
koenig7.C
blob
61b68d8032ca53b7234091cef681b04a65098986
1
// { dg-do run }
2
// Test for Koenig lookup involving overloaded functions.
3
4
namespace N1 {
5
struct A { };
6
void f1(A) {}
7
void f2(float) {}
8
void g(void (*)(float)) {}
9
}
10
11
using N1::f1;
12
void f1(float) {}
13
14
using N1::f2;
15
template <class T>
16
void f2(N1::A, T) {}
17
18
void g(void (*)(int)) {}
19
20
int main() {
21
g(&f1); // Works?
22
g(f2); // Works?
23
}