PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr50865.c
blob1f05802f5d189c2702cb06555daa6664b008b98f
1 /* PR middle-end/50865 */
3 #define INT64_MIN (-__LONG_LONG_MAX__ - 1)
5 int
6 main ()
8 volatile long long l1 = 1;
9 volatile long long l2 = -1;
10 volatile long long l3 = -1;
12 if ((INT64_MIN % 1LL) != 0)
13 __builtin_abort ();
14 if ((INT64_MIN % l1) != 0)
15 __builtin_abort ();
16 if (l2 == -1)
18 if ((INT64_MIN % 1LL) != 0)
19 __builtin_abort ();
21 else if ((INT64_MIN % -l2) != 0)
22 __builtin_abort ();
23 if ((INT64_MIN % -l3) != 0)
24 __builtin_abort ();
26 return 0;