summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/tests/asan_test_utils.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-10-17 13:39:09 +0000
committerAlexey Samsonov <samsonov@google.com>2012-10-17 13:39:09 +0000
commit7b52cb9e6dd9e4c56c2ea160c3ea1f0bd1b53ed9 (patch)
treed743209f63a0c3044f50bf7985c68336994bc0a0 /compiler-rt/lib/asan/tests/asan_test_utils.h
parent7943eb5cb51d26c0c9ab84f85d94fd08a9b44bdc (diff)
downloadbcm5719-llvm-7b52cb9e6dd9e4c56c2ea160c3ea1f0bd1b53ed9.tar.gz
bcm5719-llvm-7b52cb9e6dd9e4c56c2ea160c3ea1f0bd1b53ed9.zip
[ASan] Fix strchr/index tests for users who have 'char* strchr(char*,int)' instead of 'char* strchr(const char*, int)'
llvm-svn: 166101
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