Sign in
gnu
/
gcc
/
fba228e259dd5112851527f2dbb62c5601100985
/
.
/
gcc
/
testsuite
/
g++.dg
/
modules
/
legacy-8_e.C
blob: afeb19a94c758d115598799801483b053807c80a [
file
] [
log
] [
blame
]
// { dg-additional-options "-fmodules-ts" }
import
foo
;
int
main
()
{
int
(*
ifp
)
(
int
)
=
Sqr
;
float
(*
ffp
)
(
float
)
=
Sqr
;
if
(
ifp
(
2
)
!=
4
)
return
1
;
// Comparing these two floats is ok
if
(
ffp
(
2.0f
)
!=
4.0f
)
return
2
;
return
0
;
}