Mercurial > hg > CbC > CbC_llvm
diff libcxxabi/test/forced_unwind1.pass.cpp @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 5f17cb93ff66 |
children | 1f2b6ac9f198 |
line wrap: on
line diff
--- a/libcxxabi/test/forced_unwind1.pass.cpp Wed Jul 21 10:27:27 2021 +0900 +++ b/libcxxabi/test/forced_unwind1.pass.cpp Wed Nov 09 17:45:10 2022 +0900 @@ -13,6 +13,7 @@ // These tests fail on previously released dylibs, investigation needed. // XFAIL: use_system_cxx_lib && target={{.+}}-apple-macosx10.{{9|10|11|12|13|14|15}} +// XFAIL: use_system_cxx_lib && target={{.+}}-apple-macosx{{11.0|12.0}} #include <stdlib.h> #include <string.h> @@ -20,11 +21,6 @@ #include <tuple> #include <__cxxabi_config.h> -#if defined(_LIBCXXABI_ARM_EHABI) -int main(int, char**) { - return 0; -} -#else static int bits = 0; struct C { @@ -58,7 +54,7 @@ static void forced_unwind() { _Unwind_Exception* exc = new _Unwind_Exception; - exc->exception_class = 0; + memset(&exc->exception_class, 0, sizeof(exc->exception_class)); exc->exception_cleanup = cleanup; _Unwind_ForcedUnwind(exc, Stop<_Unwind_Stop_Fn>::stop, 0); abort(); @@ -84,4 +80,3 @@ test(); return bits != 15; } -#endif