Add a test for the driver-level -fmodules/-fno-modules flags.

llvm-svn: 147480
This commit is contained in:
Douglas Gregor 2012-01-03 21:04:31 +00:00
parent b74c909b3c
commit 26f9601698
1 changed files with 6 additions and 0 deletions

View File

@ -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