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