summaryrefslogtreecommitdiff
path: root/test/Driver/darwin-version.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Driver/darwin-version.c')
-rw-r--r--test/Driver/darwin-version.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Driver/darwin-version.c b/test/Driver/darwin-version.c
new file mode 100644
index 0000000000..b0e86fa5fe
--- /dev/null
+++ b/test/Driver/darwin-version.c
@@ -0,0 +1,6 @@
+// RUN: env MACOSX_DEPLOYMENT_TARGET=10.1 clang -E %s
+
+#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 1010
+#error Invalid version
+#endif
+