[cfe-commits] r139727 - /cfe/trunk/test/Modules/driver.c

Douglas Gregor dgregor at apple.com
Wed Sep 14 13:29:10 PDT 2011


Author: dgregor
Date: Wed Sep 14 15:29:10 2011
New Revision: 139727

URL: http://llvm.org/viewvc/llvm-project?rev=139727&view=rev
Log:
Add test for the driver's handling of modules

Added:
    cfe/trunk/test/Modules/driver.c

Added: cfe/trunk/test/Modules/driver.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/driver.c?rev=139727&view=auto
==============================================================================
--- cfe/trunk/test/Modules/driver.c (added)
+++ cfe/trunk/test/Modules/driver.c Wed Sep 14 15:29:10 2011
@@ -0,0 +1,6 @@
+// RUN: %clang %s -### 2>&1 | FileCheck -check-prefix NO_MODULE_CACHE %s
+// RUN: %clang -fmodule-cache-path blarg %s -### 2>&1 | FileCheck -check-prefix WITH_MODULE_CACHE %s
+
+// CHECK-NO_MODULE_CACHE: {{clang.*"-fmodule-cache-path"}}
+
+// CHECK-WITH_MODULE_CACHE: {{clang.*"-fmodule-cache-path" "blarg"}}





More information about the cfe-commits mailing list