2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20020103-1.c
blobc010aeaad9fc97e7a049d71254b60f9f483c59dd
1 /* On h8300 port, the following used to be broken with -mh or -ms. */
3 extern void abort (void);
4 extern void exit (int);
6 unsigned long
7 foo (unsigned long a)
9 return a ^ 0x0000ffff;
12 unsigned long
13 bar (unsigned long a)
15 return a ^ 0xffff0000;
18 int
19 main ()
21 if (foo (0) != 0x0000ffff)
22 abort ();
24 if (bar (0) != 0xffff0000)
25 abort ();
27 exit (0);