☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail3150.d
☽
☼
gcc/testsuite/gdc.test/fail_compilation/fail3150.d
code
plain
raw
1
// REQUIRED_ARGS: -de
2
/*
3
TEST_OUTPUT:
4
---
5
fail_compilation/fail3150.d(10): Error: cannot cast expression `[1, 2]` of type `int[]` to `ulong`
6
---
7
*/
8
9
void main() {
10
ulong u = cast(ulong)[1,2];
11
}