summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20020127-1.c
blob: 88078dc500d8c01ad49a27e968106ab821f5e987 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* This used to fail on h8300.  */

extern void abort (void);
extern void exit (int);

unsigned long
foo (unsigned long n)
{
  return (~n >> 3) & 1;
}

int
main ()
{
  if (foo (1 << 3) != 0)
    abort ();

  if (foo (0) != 1)
    abort ();

  exit (0);
}