Merge from mainline
[official-gcc.git] / gcc / testsuite / g++.dg / warn / conv4.C
bloba15ef8bf1905920c00e783819de8b59db1d5c82f
1 // { dg-do compile }
3 // This file should compile cleanly by default and not warn on the conversions.
4 int func1(int i)
6   return i;
9 int main()
11   float f;
12   long l;
13   unsigned long ul;
15   f = 1.5f;
17   l = f;
18   ul = -1;
19   func1(f);
21   return 0;