summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/930429-1.c
blob: 656d928ebd7116ff609fdcae250bcdaef11fd45f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
char *
f (char *p)
{
  short x = *p++ << 16;
  return p;
}

main ()
{
  char *p = "";
  if (f (p) != p + 1)
    abort ();
  exit (0);
}