repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
tree-object-size: use size_for_offset in more cases
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail8179b.d
blob
e59648f007f47ab9a0ba9db5c53f348922657f4c
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
}