aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/Inputs/check-for-sanitizer-feature/check.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/Modules/Inputs/check-for-sanitizer-feature/check.h')
-rw-r--r--test/Modules/Inputs/check-for-sanitizer-feature/check.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Modules/Inputs/check-for-sanitizer-feature/check.h b/test/Modules/Inputs/check-for-sanitizer-feature/check.h
new file mode 100644
index 000000000000..74b4628d1230
--- /dev/null
+++ b/test/Modules/Inputs/check-for-sanitizer-feature/check.h
@@ -0,0 +1,5 @@
+#if __has_feature(address_sanitizer)
+#define HAS_ASAN 1
+#else
+#define HAS_ASAN 0
+#endif