PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20051110-1.c
blob9fa3df8474f3195424bb3cbffd9c49dc9fe23f13
1 void add_unwind_adjustsp (long);
2 void abort (void);
4 unsigned char bytes[5];
6 void
7 add_unwind_adjustsp (long offset)
9 int n;
10 unsigned long o;
12 o = (long) ((offset - 0x204) >> 2);
14 n = 0;
15 while (o)
17 bytes[n] = o & 0x7f;
18 o >>= 7;
19 if (o)
20 bytes[n] |= 0x80;
21 n++;
25 int main(void)
27 add_unwind_adjustsp (4132);
28 if (bytes[0] != 0x88 || bytes[1] != 0x07)
29 abort ();
30 return 0;