aboutsummaryrefslogtreecommitdiff
path: root/test/Driver/warning-options.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-12-19 23:41:50 +0000
committerChad Rosier <mcrosier@apple.com>2012-12-19 23:41:50 +0000
commitd7dfd98f07f6af9416b342825217022f2e970a66 (patch)
tree97d22c63fe2cf201d74b6581b67d0768d4a8ab68 /test/Driver/warning-options.cpp
parent40902d817e5a73850045d8a0c9795bc5047ee000 (diff)
[driver] Have -isysroot warn on nonexistent paths.
rdar://12282267 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170611 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/warning-options.cpp')
-rw-r--r--test/Driver/warning-options.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Driver/warning-options.cpp b/test/Driver/warning-options.cpp
index cce88e65c2..c3a0214aa6 100644
--- a/test/Driver/warning-options.cpp
+++ b/test/Driver/warning-options.cpp
@@ -13,3 +13,7 @@
// RUN: %clang -### -Warc-abi -Wno-arc-abi %s 2>&1 | FileCheck -check-prefix=ARCABI %s
// ARCABI-NOT: unknown warning option '-Warc-abi'
// ARCABI-NOT: unknown warning option '-Wno-arc-abi'
+
+// Check that -isysroot warns on non-existant paths.
+// RUN: %clang -### -c -target i386-apple-darwin10 -isysroot /FOO %s 2>&1 | FileCheck --check-prefix=CHECK-ISYSROOT %s
+// CHECK-ISYSROOT: warning: no such sysroot directory: '/FOO'