The following code from the test suite sdtor.d:
-------------------
struct S20 {
static char[] r;
}
void main() {
assert(S20.r == "");
}
-------------------
Fails on 32 bit linux when compiled with -O. The problem is the XOR EAX,EAX gets scheduled before another instruction that sets the flags. The problem exists on all dmd targets.