view gcc/testsuite/c-c++-common/asan/instrument-with-calls-3.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "--param asan-instrumentation-with-call-threshold=0 -ffat-lto-objects" } */

struct A {
  char x[7];
};

void f(struct A *x, struct A *y) {
  *x = *y;
}

/* { dg-final { scan-assembler "__asan_loadN" } } */
/* { dg-final { scan-assembler "__asan_storeN" } } */