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
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
overload22.C
blob
da0a8a63a7d2ce38e2e59ccd0b9473983c83abcf
1
// { dg-do assemble }
2
// PRMS Id: 4574
3
// Bug: g++ prefers int to double for float& argument
4
5
inline double abs (double x) { return x;}
6
inline int abs (int i) { return i; }
7
8
float& fn(float& f)
9
{
10
return f;
11
}
12
13
void foo()
14
{
15
float f = 23.45;
16
abs(fn(f)); // gets bogus warning
17
}