1/* On h8300 port, the following used to be broken with -mh or -ms.  */
2
3extern void abort (void);
4extern void exit (int);
5
6unsigned long
7foo (unsigned long a)
8{
9  return a ^ 0x0000ffff;
10}
11
12unsigned long
13bar (unsigned long a)
14{
15  return a ^ 0xffff0000;
16}
17
18int
19main ()
20{
21  if (foo (0) != 0x0000ffff)
22    abort ();
23
24  if (bar (0) != 0xffff0000)
25    abort ();
26
27  exit (0);
28}
29