summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr70876.c
blob: c9bab690b335e779c1f8a4272d982e5470687d6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile { target { ! x32 } } } */
/* { dg-options "-fcheck-pointer-bounds -mmpx -Wno-implicit-function-declaration" } */

void f (char *s1, char *s2)
{
  int z = 5;

  struct { char a[z]; } x;

  s1[0] = s2[0];

  foo (x, x);
}