[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / compiler-rt / test / msan / inline.cpp
blobb2fa9615085694f10105344a8cc938fae0150799
1 // RUN: %clangxx_msan -O3 %s -o %t && %run %t
3 // Test that no_sanitize_memory attribute applies even when the function would
4 // be normally inlined.
6 #include <stdlib.h>
8 __attribute__((no_sanitize_memory))
9 int f(int *p) {
10 if (*p) // BOOOM?? Nope!
11 exit(0);
12 return 0;
15 int main(int argc, char **argv) {
16 int x;
17 int * volatile p = &x;
18 int res = f(p);
19 return 0;