summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/tests/asan_test_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/asan/tests/asan_test_utils.h')
-rw-r--r--compiler-rt/lib/asan/tests/asan_test_utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/tests/asan_test_utils.h b/compiler-rt/lib/asan/tests/asan_test_utils.h
index 577a7ebbd3f..ffcaaec4c42 100644
--- a/compiler-rt/lib/asan/tests/asan_test_utils.h
+++ b/compiler-rt/lib/asan/tests/asan_test_utils.h
@@ -30,8 +30,10 @@ typedef __int16 int16_t;
typedef __int32 int32_t;
typedef __int64 int64_t;
# define NOINLINE __declspec(noinline)
+# define USED
#else // defined(_WIN32)
# define NOINLINE __attribute__((noinline))
+# define USED __attribute__((used))
#endif // defined(_WIN32)
#if !defined(__has_feature)
OpenPOWER on IntegriCloud