summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/ice10419.d
blob: 47d1f733548e0b1454e110838dc26d22bb4d27ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
TEST_OUTPUT:
---
fail_compilation/ice10419.d(12): Error: arr().length is not an lvalue
---
*/

int[] arr() { return []; }

void main()
{
    arr().length = 1;
}