Sign in
gnu
/
gcc.git
/
refs/heads/trunk
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
diag10359.d
blob: 39a78775087a4ab09c3d6f7ed23bc0a18c4268d3 [
file
]
/*
TEST_OUTPUT:
---
fail_compilation/diag10359.d(10): Error: pointer slicing is not allowed in a `@safe` function
---
*/
void
foo
(
int
*
p
)
@safe
{
auto
a
=
p
[
0
..
10
];
}