summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/immediate-options.c
diff options
context:
space:
mode:
authorMeador Inge <meadori@codesourcery.com>2017-04-04 21:46:50 +0000
committerMeador Inge <meadori@codesourcery.com>2017-04-04 21:46:50 +0000
commit51208a38de9ea04e3e36022c02db68d911e96d1a (patch)
tree4e5a7aac05ed84dd2d60739542cc58a99d16a787 /clang/test/Driver/immediate-options.c
parentc745b6a1f6eecf3429b6ebdbcae5d524f7efacb2 (diff)
downloadbcm5719-llvm-51208a38de9ea04e3e36022c02db68d911e96d1a.tar.gz
bcm5719-llvm-51208a38de9ea04e3e36022c02db68d911e96d1a.zip
[Driver] Add option to print the resource directory
This patch adds the option -print-resource-dir. It simply prints the resource directory. This information will eventually be used in compiler-rt to setup COMPILER_RT_LIBRARY_INSTALL_DIR. Patch by Catherine Moore! Differential Revision: https://reviews.llvm.org/D31447 llvm-svn: 299473
Diffstat (limited to 'clang/test/Driver/immediate-options.c')
-rw-r--r--clang/test/Driver/immediate-options.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Driver/immediate-options.c b/clang/test/Driver/immediate-options.c
index f50ccae6421..935c948321f 100644
--- a/clang/test/Driver/immediate-options.c
+++ b/clang/test/Driver/immediate-options.c
@@ -12,3 +12,8 @@
// RUN: %clang -print-search-dirs | FileCheck %s -check-prefix=PRINT-SEARCH-DIRS
// PRINT-SEARCH-DIRS: programs: ={{.*}}
// PRINT-SEARCH-DIRS: libraries: ={{.*}}
+
+// Test if the -print-resource-dir option is accepted without error.
+// Allow unspecified output because the value of CLANG_RESOURCE_DIR is unknown.
+// RUN: %clang -print-resource-dir | FileCheck %s -check-prefix=PRINT-RESOURCE-DIR
+// PRINT-RESOURCE-DIR: {{.+}}
OpenPOWER on IntegriCloud