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
d: Merge upstream dmd 47871363d, druntime, c52e28b7, phobos 99e9c1b77.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail77.d
blob
2d291fc9f5cfa421b619abe6b48ad815a8a689c1
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail77.d(11): Error: cannot cast expression `& i` of type `int*` to `ubyte[4]`
5
---
6
*/
7
void
test
()
8
{
9
int
i
;
10
ubyte
[
4
]
ub
;
11
ub
[] =
cast
(
ubyte
[
4
]) &
i
;
12
//ub[] = (cast(ubyte*) &i)[0..4];
13
}