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

17 lines
323 B
D

/*
TEST_OUTPUT:
---
fail_compilation/fail35.d(15): Error: variable `t` cannot be read at compile time
---
*/
// https://www.digitalmars.com/d/archives/digitalmars/D/bugs/2372.html
// allegedly crashes, but cannot reproduce
void main()
{
for (int t = 0; t < 33; t++)
{
size_t n = (bool[t]).sizeof;
}
}