Newer SDKs don't even provide libstdc++ headers, so it's effectively never valid to build for libstdc++ unless the user explicitly asks for it (in which case they will need to provide include paths and more). This is a re-application ofc5ccb78adewhich had been reverted in33171df9ccbecause it broke the Fuchsia CI bots. The issue was that the test was XPASSing because it didn't fail anymore when the CLANG_DEFAULT_CXX_LIB was set to libc++, which seems to be done for Fuchsia. Instead, the test only fails if CLANG_DEFAULT_CXX_LIB is set to libstdc++. As a fly-by fix, also adjust the triple used by various tests to something that is supported. Those tests were shown to fail on internal bots. Differential Revision: https://reviews.llvm.org/D131274
20 lines
232 B
Mathematica
20 lines
232 B
Mathematica
// RUN: %clang -target x86_64-apple-darwin11 \
|
|
// RUN: -fsyntax-only -fno-exceptions %s
|
|
|
|
void f1(void) {
|
|
@throw @"A";
|
|
}
|
|
|
|
void f0(void) {
|
|
@try {
|
|
f1();
|
|
} @catch (id x) {
|
|
;
|
|
}
|
|
}
|
|
|
|
int main(void) {
|
|
f0();
|
|
return 0;
|
|
}
|