[ASan/Win] Add a comment about DCL-using-static vs threads
[blocksruntime.git] / test / msan / inline.cc
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;