Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
conv4.C
blob: a15ef8bf1905920c00e783819de8b59db1d5c82f [
file
] [
log
] [
blame
]
// { dg-do compile }
// This file should compile cleanly by default and not warn on the conversions.
int
func1
(
int
i
)
{
return
i
;
}
int
main
()
{
float
f
;
long
l
;
unsigned
long
ul
;
f
=
1.5f
;
l
=
f
;
ul
=
-
1
;
func1
(
f
);
return
0
;
}