summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/diag10359.d
blob: 142cec98e0c7adca014021874d768ea4bfd16797 (plain)
1
2
3
4
5
6
7
8
9
10
11
/*
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];
}