mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 15:26:06 +00:00

The recommit ensures that the tests that failed on bots don't trigger the warning. 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: 335081
10 lines
311 B
C++
10 lines
311 B
C++
// RUN: %clang -target x86_64-apple-darwin10 -S -o %t.s -Wno-stdlibcxx-not-found -mkernel -Xclang -verify %s
|
|
|
|
// rdar://problem/9143356
|
|
|
|
int foo();
|
|
void test() {
|
|
static int y = 0;
|
|
static int x = foo(); // expected-error {{this initialization requires a guard variable, which the kernel does not support}}
|
|
}
|