Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/asan/no-redundant-instrumentation-5.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* { dg-options "-fdump-tree-sanopt" } */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-skip-if "" { *-*-* } { "*" } { "-O0" } } */ | |
4 | |
5 void | |
6 foo (int *a, char *b, char *c) | |
7 { | |
8 /* One check for a[]. */ | |
9 __builtin_memmove (c, b, a[0]); | |
10 /* For a total of 1 checks. */ | |
11 int d = a[0] == 0; | |
12 } | |
13 | |
14 /* { dg-final { scan-tree-dump-times "& 7" 1 "sanopt" } } */ | |
15 /* { dg-final { scan-tree-dump-times "__builtin___asan_report_load4" 1 "sanopt" } } */ |