aboutsummaryrefslogtreecommitdiff
path: root/test/Driver/immediate-options.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Driver/immediate-options.c')
-rw-r--r--test/Driver/immediate-options.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Driver/immediate-options.c b/test/Driver/immediate-options.c
index f50ccae64217..935c948321f5 100644
--- a/test/Driver/immediate-options.c
+++ b/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: {{.+}}