summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2018-06-19 17:56:03 +0000
committerAlex Lorenz <arphaman@gmail.com>2018-06-19 17:56:03 +0000
commit456699ddd1eddad07e3e85ae082e54b6a6221a6d (patch)
treeb0e33fc1d285c7a97f36785cc242dfb5a8a8eac4 /clang/test
parent7ffa97699355822eaa42d79216ff917036167f9b (diff)
downloadbcm5719-llvm-456699ddd1eddad07e3e85ae082e54b6a6221a6d.tar.gz
bcm5719-llvm-456699ddd1eddad07e3e85ae082e54b6a6221a6d.zip
[Darwin] Add a warning for missing include path for libstdc++
Xcode 10 removes support for libstdc++, but the users just get a confusing include not file warning when including an STL header (when building for iOS6 which uses libstdc++ by default for example). This patch adds a new warning that lets the user know that the libstdc++ include path was not found to ensure that the user is more aware of why the error occurs. rdar://40830462 Differential Revision: https://reviews.llvm.org/D48297 llvm-svn: 335063
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Frontend/warning-stdlibcxx-darwin.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Frontend/warning-stdlibcxx-darwin.cpp b/clang/test/Frontend/warning-stdlibcxx-darwin.cpp
new file mode 100644
index 00000000000..3c132b6a833
--- /dev/null
+++ b/clang/test/Frontend/warning-stdlibcxx-darwin.cpp
@@ -0,0 +1,5 @@
+// RUN: %clang -cc1 -triple arm64-apple-ios6.0.0 -isysroot %S/doesnotexist %s 2>&1 | FileCheck %s
+// RUN: %clang -cc1 -triple arm64-apple-ios6.0.0 -isysroot %S/doesnotexist -stdlib=libc++ %s -verify
+// CHECK: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead
+
+// expected-no-diagnostics
OpenPOWER on IntegriCloud