Files
clang-p2996/compiler-rt/lib/asan/lit_tests/force_inline_opt0.cc
Chandler Carruth 580916eacb Re-enable this test now that r166172 has hacked around the terrible
limitations of the pass manager stack in the pass manager builder.

llvm-svn: 166173
2012-10-18 08:06:28 +00:00

15 lines
304 B
C++

// This test checks that we are no instrumenting a memory access twice
// (before and after inlining)
// RUN: %clangxx_asan -m64 -O1 %s -o %t && %t
// RUN: %clangxx_asan -m64 -O0 %s -o %t && %t
__attribute__((always_inline))
void foo(int *x) {
*x = 0;
}
int main() {
int x;
foo(&x);
return x;
}