summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/980617-1.c
blob: 5f7768aca7a7d41905d14f9ed7c0deb9a70a4c82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
void foo (unsigned int * p)
{
  if ((signed char)(*p & 0xFF) == 17 || (signed char)(*p & 0xFF) == 18)
    return;
  else
    abort ();
}

int main ()
{
  int i = 0x30011;
  foo(&i);
  exit (0);
}