Debian Codegraph @

gcc/testsuite/g++.dg/warn/conv4.C

raw
1 // { dg-do compile }
2
3 // This file should compile cleanly by default and not warn on the conversions.
4 int func1(int i)
5 {
6 return i;
7 }
8
9 int main()
10 {
11 float f;
12 long l;
13 unsigned long ul;
14
15 f = 1.5f;
16
17 l = f;
18 ul = -1;
19 func1(f);
20
21 return 0;
22 }