Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail298.d
blob: aa4f9e84ee71fc76ee431ba679ebcf84b4f9c0d7 [
file
] [
log
] [
blame
]
/*
TEST_OUTPUT:
---
fail_compilation/fail298.d(12): Error: cannot implicitly convert expression `num1 / cast(ulong)num2` of type `ulong` to `int`
---
*/
void
main
()
{
ulong
num1
=
100
;
int
num2
=
10
;
int
result
=
num1
/
num2
;
}