1 // { dg-do assemble } 2 // PRMS Id: 4574 3 // Bug: g++ prefers int to double for float& argument 4 abs(double x)5inline double abs (double x) { return x;} abs(int i)6inline int abs (int i) { return i; } 7 fn(float & f)8float& fn(float& f) 9 { 10 return f; 11 } 12 foo()13void foo() 14 { 15 float f = 23.45; 16 abs(fn(f)); // gets bogus warning 17 } 18