Debian Codegraph @

gcc/testsuite/gdc.dg/torture/gdc66.d

raw
1 // https://bugzilla.gdcproject.org/show_bug.cgi?id=66
2 // { dg-do run }
3 // { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
4
5 void main()
6 {
7 int pos = 0;
8
9 foreach(x; 0 .. 64)
10 {
11 ++pos %= 4;
12 assert (pos != 4);
13 }
14 }