PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20000412-6.c
blob98e00305197902cb2f1296c07c2a1d908e833d86
1 unsigned bug (unsigned short value, unsigned short *buffer,
2 unsigned short *bufend);
4 unsigned short buf[] = {1, 4, 16, 64, 256};
5 int main()
7 if (bug (512, buf, buf + 3) != 491)
8 abort ();
10 exit (0);
13 unsigned
14 bug (unsigned short value, unsigned short *buffer, unsigned short *bufend)
16 unsigned short *tmp;
18 for (tmp = buffer; tmp < bufend; tmp++)
19 value -= *tmp;
21 return value;