OSDN Git Service

PR middle-end/51761
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / compile / pr49049.c
1 __extension__ typedef unsigned long long int uint64_t;
2
3 static int
4 sub (int a, int b)
5 {
6   return a - b;
7 }
8
9 static uint64_t
10 add (uint64_t a, uint64_t b)
11 {
12   return a + b;
13 }
14
15 int *ptr;
16
17 int
18 foo (uint64_t arg1, int *arg2)
19 {
20   int j;
21   for (; j < 1; j++)
22     {
23       *arg2 |= sub ( sub (sub (j || 1 ^ 0x1, 1), arg1 < 0x1 <=
24                                                    sub (1, *ptr & j)),
25                      (sub ( j != 1 || sub (j && j, 1) >= 0,
26                        add (!j > arg1, 0x35DLL))));
27     }
28 }