Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
diag10926.d
blob: bd590ba215125c587e87d4a7b79ab0f8c2d7f57d [
file
] [
log
] [
blame
]
/*
TEST_OUTPUT:
---
fail_compilation/diag10926.d(11): Error: cast(const(int)[])c is not an lvalue
---
*/
void
main
()
{
const
(
int
)[]
a
,
b
;
int
[]
c
,
d
;
(
true
?
a
:
c
)
~=
20
;
// line 6, Error: a is not an lvalue
}