aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-01-03 21:04:31 +0000
committerDouglas Gregor <dgregor@apple.com>2012-01-03 21:04:31 +0000
commit200619f11c6af2394db5f5840b4f5e07e83784c6 (patch)
tree0e0a6cfd45c4de1e20f238fbf75068aab26207d2
parent952b35dc07d5c77592a1b6bd54257511fcdb1ca9 (diff)
Add a test for the driver-level -fmodules/-fno-modules flags.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147480 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Driver/modules.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Driver/modules.m b/test/Driver/modules.m
new file mode 100644
index 0000000000..b93054dbf8
--- /dev/null
+++ b/test/Driver/modules.m
@@ -0,0 +1,6 @@
+// RUN: %clang -fmodules -fno-modules -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MODULES %s
+// CHECK-NO-MODULES-NOT: -fmodules
+
+// RUN: %clang -fmodules -fno-modules -fmodules -### %s 2>&1 | FileCheck -check-prefix=CHECK-HAS-MODULES %s
+// CHECK-HAS-MODULES: -fmodules
+