Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/fail35.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail35.d(15): Error: variable `t` cannot be read at compile time
5 ---
6 */
7
8 // https://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 }