* gcc.dg/20061124-1.c: Add exit() function prototype.
[official-gcc.git] / gcc / testsuite / gcc.dg / 20030323-1.c
blob8a563ec5eb21f09740b32c94c1145cb0f37a10fa
1 /* { dg-do run } */
3 /* PR c/8224 */
4 /* Contributed by Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> */
6 extern void abort (void);
8 unsigned f (int x)
10 return (unsigned) (x / 2) / 2;
13 unsigned f1 (int x)
15 unsigned xx = x / 2;
16 return xx / 2;
19 int main ()
21 if (f1 (-5) != f (-5))
22 abort ();
23 return 0;