[RFA] Fix csky and c6x build failures
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr112305.c
blobea6e044529d1e3e100f6ba50e972e997ed743804
1 /* { dg-do run } */
2 /* { dg-require-effective-target int32plus } */
3 /* { dg-skip-if "long-running loop" { simulator } { "-O0" "-O1" } } */
5 int a;
6 void b()
8 long c = 3;
9 unsigned int d = 50253292;
10 int e = 2147483648;
11 for (; a < 5; a++)
12 do {
13 e += 4;
14 d -= c;
15 } while (e < 20);
16 if (d != -1560359471u)
17 __builtin_abort ();
19 int main() { b(); }