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, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
xmmslice.d
blob
6cf0e238f29bd6c2afaf5d0fdd59730f8d1372ad
1
2
/* REQUIRED_ARGS: -mcpu=avx
3
DISABLED: win32 freebsd32 linux32 osx32
4
TEST_OUTPUT:
5
---
6
fail_compilation/xmmslice.d(110): Error: `__vector(int[4])` cannot be sliced with `[]`
7
---
8
*/
9
10
#line
100
11
12
import
core
.
simd
;
13
14
int4
testz4
()
15
{
16
return
[
0
,
0
,
0
,
0
];
17
}
18
19
void
test
()
20
{
21
assert
(
testz4
()[] == [
0
,
0
,
0
,
0
]);
22
}