view gcc/testsuite/c-c++-common/asan/pr88619.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

/* PR sanitizer/88619 */
/* { dg-do compile { target fstack_protector } } */
/* { dg-options "-fstack-protector-strong -fsanitize=address" } */

typedef int A __attribute__((aligned (64)));

int
main ()
{
  A b;
  int *p = &b;
  *(p - 1) = 123;
  void *p2 = __builtin_alloca (b);
}