dmd/compiler/test/fail_compilation/fail18.d
2022-07-09 18:53:07 +02:00

15 lines
221 B
D

/*
TEST_OUTPUT:
---
fail_compilation/fail18.d(14): Error: upper and lower bounds are needed to slice a pointer
---
*/
// 7/25
// Internal error: ..\ztc\cgcod.c 1464
void main ()
{
int x = 3;
int[] a = (&x)[];
}