[cfe-commits] r147480 - /cfe/trunk/test/Driver/modules.m
Douglas Gregor
dgregor at apple.com
Tue Jan 3 13:04:31 PST 2012
Author: dgregor
Date: Tue Jan 3 15:04:31 2012
New Revision: 147480
URL: http://llvm.org/viewvc/llvm-project?rev=147480&view=rev
Log:
Add a test for the driver-level -fmodules/-fno-modules flags.
Added:
cfe/trunk/test/Driver/modules.m
Added: cfe/trunk/test/Driver/modules.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/modules.m?rev=147480&view=auto
==============================================================================
--- cfe/trunk/test/Driver/modules.m (added)
+++ cfe/trunk/test/Driver/modules.m Tue Jan 3 15:04:31 2012
@@ -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
+
More information about the cfe-commits
mailing list