Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
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
;
}