mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
17 lines
323 B
D
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;
|
|
}
|
|
}
|