Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / hppa / shadd-1.c
blob55115b4d506ff6923b27d351622b9cd5b15e58b7
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* { dg-final { scan-assembler-times "sh.add" 1 } } */
5 typedef struct
7 unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
9 __sigset_t;
10 int
11 __sigaddset (__sigset_t * __set, int __sig, int __stuff)
13 unsigned long int __word =
14 (((__sig) - 1) / (8 * sizeof (unsigned long int)));
15 return __set->__val[__word] = __stuff;