summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr67271.c
blob: 977e25317924aa117b4ca3739105294273f2baf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-O" } */
/* { dg-require-effective-target int32plus } */

extern long int labs (long int j);
int
main ()
{
  long *a = (long *)"empty";
  int i = 1441516387;
  a[i] = labs (a[i]);
  return 0;
}