Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
diag10359.d
blob: 142cec98e0c7adca014021874d768ea4bfd16797 [
file
] [
log
] [
blame
]
/*
TEST_OUTPUT:
---
fail_compilation/diag10359.d(10): Error: pointer slicing not allowed in safe functions
---
*/
void
foo
(
int
*
p
)
@safe
{
auto
a
=
p
[
0
..
10
];
}