Mercurial > hg > CbC > CbC_llvm
diff libcxxabi/test/test_aux_runtime_op_array_new.pass.cpp @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 0572611fdcc8 |
children | 5f17cb93ff66 |
line wrap: on
line diff
--- a/libcxxabi/test/test_aux_runtime_op_array_new.pass.cpp Mon May 25 11:55:54 2020 +0900 +++ b/libcxxabi/test/test_aux_runtime_op_array_new.pass.cpp Tue Jun 08 06:07:14 2021 +0900 @@ -8,8 +8,17 @@ // UNSUPPORTED: no-exceptions -#include <iostream> +// ___cxa_throw_bad_array_new_length is re-exported from libc++ only starting +// in macosx 10.15 +// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.14 +// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.13 +// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.12 +// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.11 +// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.10 +// XFAIL: use_system_cxx_lib && x86_64-apple-macosx10.9 + #include <cxxabi.h> +#include <new> // If the expression passed to operator new[] would result in an overflow, the // allocation function is not called, and a std::bad_array_new_length exception @@ -27,11 +36,10 @@ return false; } -int main() { +int main(int, char**) { int ret_val = 0; if ( !bad_array_new_length_test ()) { - std::cerr << "Bad array new length test failed!" << std::endl; ret_val = 1; }