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