2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / c-c++-common / asan / force-inline-opt0-1.c
blob0576155c284b3d00d12820976a46f00bdec017f7
1 /* This test checks that we are no instrumenting a memory access twice
2 (before and after inlining) */
4 /* { dg-do compile } */
5 /* { dg-final { scan-assembler-not "__asan_report_load" } } */
7 __attribute__((always_inline))
8 inline void foo(int *x) {
9 *x = 0;
12 int main() {
13 int x;
14 foo(&x);
15 return x;