]>
Commit | Line | Data |
---|---|---|
b4c522fa IB |
1 | /* |
2 | TEST_OUTPUT: | |
3 | --- | |
5fee5ec3 | 4 | fail_compilation/fail35.d(15): Error: variable `t` cannot be read at compile time |
b4c522fa IB |
5 | --- |
6 | */ | |
7 | ||
8 | // http://www.digitalmars.com/d/archives/digitalmars/D/bugs/2372.html | |
9 | // allegedly crashes, but cannot reproduce | |
10 | ||
11 | void main() | |
12 | { | |
13 | for (int t = 0; t < 33; t++) | |
14 | { | |
15 | size_t n = (bool[t]).sizeof; | |
16 | } | |
17 | } |