aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/asan/pr88291.c
blob: e86526671d60b06699e28bcc28a0bc99b2d2a63d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR sanitizer/88291 */
/* { dg-do compile } */
/* { dg-options "-fsanitize=address -Os" } */
/* { dg-additional-options "-mstringop-strategy=libcall" { target i?86-*-* x86_64-*-* } } */

void bar (void *, void *);

void
foo (void)
{
  int b;
  char __attribute__((aligned(16))) a[(1 << 20) + 1];
  bar (&a, &b);
}