Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / bic-bitmask.h
blobfaf80b974db07a7d817a615cc64a35f1020e9764
1 #include <stdio.h>
3 #ifndef N
4 #define N 65
5 #endif
7 #ifndef TYPE
8 #define TYPE uint32_t
9 #endif
11 #ifndef DEBUG
12 #define DEBUG 0
13 #endif
15 #define BASE ((TYPE) -1 < 0 ? -126 : 4)
17 int main ()
19 TYPE a[N];
20 TYPE b[N];
22 for (int i = 0; i < N; ++i)
24 a[i] = BASE + i * 13;
25 b[i] = BASE + i * 13;
26 if (DEBUG)
27 printf ("%d: 0x%x\n", i, a[i]);
30 fun1 (a, N);
31 fun2 (b, N);
33 for (int i = 0; i < N; ++i)
35 if (DEBUG)
36 printf ("%d = 0x%x == 0x%x\n", i, a[i], b[i]);
38 if (a[i] != b[i])
39 __builtin_abort ();
41 return 0;