]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.test/fail_compilation/fail35.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail35.d
CommitLineData
b4c522fa
IB
1/*
2TEST_OUTPUT:
3---
5fee5ec3 4fail_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
11void main()
12{
13 for (int t = 0; t < 33; t++)
14 {
15 size_t n = (bool[t]).sizeof;
16 }
17}