summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/unsorted/loadhicc.c
blob: a7540894f5e6b0d081de6a986f023756b7311ab7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
typedef int xtype;

foo (p, pc)
     xtype *p;
     char *pc;
{
  xtype a;
  unsigned b = 0;

  a = *p;
  p[1] = a;
  if ((unsigned) p[1] > 0)
    return 1;
  return a;
}