]> granicus.if.org Git - clang/commitdiff
Add test for the driver's handling of modules
authorDouglas Gregor <dgregor@apple.com>
Wed, 14 Sep 2011 20:29:10 +0000 (20:29 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 14 Sep 2011 20:29:10 +0000 (20:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139727 91177308-0d34-0410-b5e6-96231b3b80d8

test/Modules/driver.c [new file with mode: 0644]

diff --git a/test/Modules/driver.c b/test/Modules/driver.c
new file mode 100644 (file)
index 0000000..de10cd0
--- /dev/null
@@ -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"}}