* c-common.c (catenate_strings): New.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / overload22.C
blobda0a8a63a7d2ce38e2e59ccd0b9473983c83abcf
1 // { dg-do assemble  }
2 // PRMS Id: 4574
3 // Bug: g++ prefers int to double for float& argument
5 inline double abs (double x) { return x;}
6 inline int    abs (int i)    { return i; }
8 float& fn(float& f)
10   return f;
13 void foo()
15   float f = 23.45;
16   abs(fn(f));                   // gets bogus warning