Update ChangeLog and version files for release
[official-gcc.git] / gcc / testsuite / c-c++-common / asan / no-redundant-instrumentation-13.c
blobc04be064188cbcedb99ca5f81e2a6ab9dc17095b
1 /* { dg-options "-fdump-tree-sanopt" } */
2 /* { dg-do compile } */
3 /* { dg-skip-if "" { *-*-* } { "*" } { "-O0" } } */
5 void
6 foo (char *p)
8 __builtin_memcpy (p, "abc", 0);
9 /* This generates a __builtin___asan_report_store1 because we didn't access
10 any byte in previous memcpy because of zero length parameter. */
11 p[0] = 'd';
14 /* { dg-final { scan-tree-dump-times "__builtin___asan_report_store1" 1 "sanopt" } } */
15 /* { dg-final { cleanup-tree-dump "sanopt" } } */