summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/unsorted/xbg.c
blob: b600964d4203c7ab80b52b017a957af89c1fa9c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
typedef short type;

short
foo (type *sp, int a)
{
  type t;
  int i;

  t = sp[a];
  i = (int)(type)sp[a];
  if (i)
    return 0;
  return t;
}