Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail22366.d
blob: 3a2469f5fe10dd93ae20a35360b6af684b485501 [
file
] [
log
] [
blame
]
// REQUIRED_ARGS: -dip1000
/*
TEST_OUTPUT:
---
fail_compilation/fail22366.d(13): Error: scope variable `__aaval2` assigned to non-scope `aa[0]`
---
*/
int
*
fun
(
scope
int
*
x
)
@safe
{
int
*[
int
]
aa
;
aa
[
0
]
=
x
;
// should give an error
return
aa
[
0
];
}