aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/asan/no-redundant-instrumentation-9.c
blob: 9449de578847f5aad19f804825dfb08180e98c0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-options "-fdump-tree-sanopt" } */
/* { dg-do compile } */
/* { dg-skip-if "" { *-*-* } { "*" } { "-O0" } } */

__SIZE_TYPE__
f (char *a)
{
  a[0] = '1';
  return  __builtin_strlen (a);
}

/* { dg-final { scan-tree-dump-times "__asan_report_load1" 1 "sanopt" } } */
/* { dg-final { cleanup-tree-dump "sanopt" } } */