summaryrefslogtreecommitdiff
path: root/clang/test/Driver/modules.mm
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Driver/modules.mm')
-rw-r--r--clang/test/Driver/modules.mm6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Driver/modules.mm b/clang/test/Driver/modules.mm
new file mode 100644
index 0000000..b2948c4
--- /dev/null
+++ b/clang/test/Driver/modules.mm
@@ -0,0 +1,6 @@
+// RUN: %clang -fmodules -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MODULES %s
+// RUN: %clang -fcxx-modules -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MODULES %s
+// CHECK-NO-MODULES-NOT: -fmodules
+
+// RUN: %clang -fcxx-modules -fmodules -### %s 2>&1 | FileCheck -check-prefix=CHECK-HAS-MODULES %s
+// CHECK-HAS-MODULES: -fmodules