OSDN Git Service

testsuite/
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / execute / pr42721.c
1 /* PR c/42721 */
2
3 extern void abort (void);
4
5 static unsigned long long
6 foo (unsigned long long x, unsigned long long y)
7 {
8   return x / y;
9 }
10
11 static int a, b;
12
13 int
14 main (void)
15 {
16   unsigned long long c = 1;
17   b ^= c && (foo (a, -1ULL) != 1L);
18   if (b != 1)
19     abort ();
20   return 0;
21 }