From: Douglas Gregor Date: Wed, 14 Sep 2011 20:29:10 +0000 (+0000) Subject: Add test for the driver's handling of modules X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2978e337520bab472fdfa7dfda839bafbf750e9;p=clang Add test for the driver's handling of modules git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139727 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Modules/driver.c b/test/Modules/driver.c new file mode 100644 index 0000000000..de10cd0cec --- /dev/null +++ b/test/Modules/driver.c @@ -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"}}