From e2978e337520bab472fdfa7dfda839bafbf750e9 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 14 Sep 2011 20:29:10 +0000 Subject: [PATCH] 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 --- test/Modules/driver.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/Modules/driver.c 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"}}