aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/is_target_environment_version.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/is_target_environment_version.c')
-rw-r--r--test/Preprocessor/is_target_environment_version.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Preprocessor/is_target_environment_version.c b/test/Preprocessor/is_target_environment_version.c
new file mode 100644
index 000000000000..e93386013c3b
--- /dev/null
+++ b/test/Preprocessor/is_target_environment_version.c
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -fsyntax-only -triple x86_64-pc-windows-msvc18.0.0 -verify %s
+// expected-no-diagnostics
+
+#if !__is_target_environment(msvc)
+ #error "mismatching environment"
+#endif