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
/
test16381.d
blob
fd92798366c60089f55f17b80d4f256b931e79fa
1
/*
2
REQUIRED_ARGS: -m64
3
TEST_OUTPUT:
4
---
5
fail_compilation/test16381.d(15): Error: `foo()` is not an lvalue and cannot be modified
6
---
7
*/
8
9
// https://issues.dlang.org/show_bug.cgi?id=16381
10
11
__vector
(
float
[
4
])
foo
();
12
13
void
bar
()
14
{
15
float
g
=
foo
().
ptr
[
0
];
16
}