summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20000715-2.c
blob: bfee0c369b88ee0ef5e07c7a0dcce099043a859f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern void abort(void);
extern void exit(int);

unsigned int foo(unsigned int a)
{
  return ((unsigned char)(a + 1)) * 4;
}

int main(void)
{
  if (foo((unsigned char)~0))
    abort ();
  exit(0);
}