1/* This used to fail on h8300.  */
2
3extern void abort (void);
4extern void exit (int);
5
6unsigned long
7foo (unsigned long n)
8{
9  return (~n >> 3) & 1;
10}
11
12int
13main ()
14{
15  if (foo (1 << 3) != 0)
16    abort ();
17
18  if (foo (0) != 1)
19    abort ();
20
21  exit (0);
22}
23