http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51994

--- Comment #7 from Uros Bizjak <ubizjak at gmail dot com> 2012-01-25 13:19:32 
UTC ---
Testcase that crashes on alpha:

--cut here--
extern void abort (void);

char __attribute__((noinline))
test (int a)
{
  char buf[] = "0123456789";
  char *output = buf;

  output += a;
  output -= 1;

  return output[0];
}

int main ()
{
  if (test (2) != '1')
    abort ();

  return 0;
}
--cut here--

Reply via email to