summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/immediate-options.c
diff options
context:
space:
mode:
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