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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
rfg4.C
blob
fbc3841ddd3e028b2aae556d664a0810f015e6a9
1
// { dg-do assemble }
2
// { dg-options "-ansi -pedantic-errors -w" }
3
// Bug: f1 and f2 are treated as overloaded when they aren't.
4
5
int i;
6
void f1(double) { }
7
void f2(double) { }
8
9
void
10
test ()
11
{
12
i ? f1 : f2; // { dg-bogus "" } improper overloading
13
}