aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/asan/pr88619.c
blob: fd3fbf1a73a68f1e88c64065eee8f5f0b7d4f965 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* 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);
}