diff options
Diffstat (limited to 'test/Driver/resource-dir.cpp')
-rw-r--r-- | test/Driver/resource-dir.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Driver/resource-dir.cpp b/test/Driver/resource-dir.cpp new file mode 100644 index 0000000000..484d7f5576 --- /dev/null +++ b/test/Driver/resource-dir.cpp @@ -0,0 +1,10 @@ +// RUN: %clang %s -fsyntax-only -### 2> %t.log +// RUN: FileCheck %s --check-prefix=CHECK-DEFAULT < %t.log + +// CHECK-DEFAULT: "-resource-dir" "{{.+}}/../lib/clang/{{.+}}" + +// RUN: %clang %s -fsyntax-only -ccc-install-dir /my/install/dir -### 2> %t.log +// RUN: FileCheck %s --check-prefix=CHECK-INSTALL-DIR < %t.log +// CHECK-INSTALL-DIR: "-resource-dir" "/my/install/dir/../lib/clang + +void foo(void) {} |