aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/asan/shadow-offset-1.c
blob: d868fd01242c1b4065fde85c4834e21adbf4f539 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-fno-sanitize=address -fsanitize=kernel-address --param asan-instrumentation-with-call-threshold=100 -fasan-shadow-offset=12345 -fdump-tree-sanopt" } */
/* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */
 
int f (int *p)
{
  return *p;
}

/* { dg-final { scan-tree-dump "12345" "sanopt" }  } */