llvm-project/libcxxabi/test
Eric Fiselier 29e0265732 private_typeinfo: limit is_dst_type_derived_from_static_type optimization
Patch by Ryan Prichard

If the destination type does not derive from the static type, we can skip
the search_above_dst call, but we still need to run the
!does_dst_type_point_to_our_static_type block of code. That block of code
will increment info->number_to_dst_ptr to 2, and because dest isn't derived
from static, the cast will ultimately fail.

Fixes PR33439

Reviewed as https://reviews.llvm.org/D36447

llvm-svn: 332767
2018-05-18 20:51:38 +00:00
..
libcxxabi Fix test failure for missing _LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS 2018-05-03 12:44:27 +00:00
native/arm-linux-eabi Fix use of now removed %exec test substitution 2017-05-10 17:52:53 +00:00
support
CMakeLists.txt Fix standalone test-suite run. 2018-01-17 22:07:09 +00:00
backtrace_test.pass.cpp Fix warnings in libc++abi tests 2016-12-24 00:37:13 +00:00
catch_array_01.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
catch_array_02.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
catch_class_01.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
catch_class_02.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
catch_class_03.pass.cpp Suppress warnings about the operations currently under test. 2016-06-15 19:07:19 +00:00
catch_class_04.pass.cpp [libcxxabi] Reorder base class initializers in libc++abi tests to prevent -Wreorder 2016-06-15 19:33:01 +00:00
catch_const_pointer_nullptr.pass.cpp [libcxxabi] When catching an exception of type nullptr_t with a handler of 2016-07-19 20:19:37 +00:00
catch_function_01.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
catch_function_02.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
catch_function_03.pass.cpp Check for SD-6 feature test macro when determining which tests should be 2016-12-02 22:14:59 +00:00
catch_in_noexcept.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
catch_member_data_pointer_01.pass.cpp Fix [libcxxabi] Fix warning about uninitialized const member. 2016-06-15 19:59:16 +00:00
catch_member_function_pointer_01.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
catch_member_function_pointer_02.pass.cpp XFAIL noexcept member function throw/catch test under GCC. 2017-05-09 00:11:02 +00:00
catch_member_pointer_nullptr.pass.cpp [libcxxabi] When catching an exception of type nullptr_t with a handler of 2016-07-19 20:19:37 +00:00
catch_multi_level_pointer.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
catch_pointer_nullptr.pass.cpp [libcxxabi] When catching an exception of type nullptr_t with a handler of 2016-07-19 20:19:37 +00:00
catch_pointer_reference.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
catch_ptr.pass.cpp [libcxxabi] Reorder base class initializers in libc++abi tests to prevent -Wreorder 2016-06-15 19:33:01 +00:00
catch_ptr_02.pass.cpp Suppress warnings about the operations currently under test. 2016-06-15 19:07:19 +00:00
catch_reference_nullptr.pass.cpp Fix catch_reference_nullptr.pass.cpp test for GCC. 2017-01-20 19:34:19 +00:00
cxa_bad_cast.pass.cpp Fix warnings in libc++abi tests 2016-12-24 00:37:13 +00:00
cxa_bad_typeid.pass.cpp [libcxxabi][test] Add missing return statement. 2016-06-01 19:13:53 +00:00
cxa_thread_atexit_test.pass.cpp Fix PR25874 - cxa_thread_atexit_test.pass.cpp has an incorrect XFAIL. 2017-04-20 23:40:35 +00:00
dynamic_cast.pass.cpp private_typeinfo: limit is_dst_type_derived_from_static_type optimization 2018-05-18 20:51:38 +00:00
dynamic_cast3.pass.cpp Suppress warnings about the operations currently under test. 2016-06-15 19:07:19 +00:00
dynamic_cast5.pass.cpp Suppress warnings about the operations currently under test. 2016-06-15 19:07:19 +00:00
dynamic_cast14.pass.cpp Reducing stack usage of test 2016-03-04 14:25:13 +00:00
dynamic_cast_stress.pass.cpp
exception_object_alignment.pass.cpp [libcxxabi] Fix the test case committed in r303175. 2017-05-16 18:18:03 +00:00
incomplete_type.sh.cpp Fix incomplete type test on OS X; workaround weird DYLD_LIBRARY_PATH behavior 2017-07-06 00:29:09 +00:00
inherited_exception.pass.cpp Suppress warnings about the operations currently under test. 2016-06-15 19:07:19 +00:00
lit.cfg Fix path to libc++'s python test module 2017-02-09 23:58:54 +00:00
lit.site.cfg.in [libcxxabi] Pass LIBCXXABI_SYSROOT and LIBCXXABI_GCC_TOOLCHAIN to lit 2017-12-12 01:20:37 +00:00
noexception1.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
noexception2.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
noexception3.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
noexception4.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
test_aux_runtime.pass.cpp Fix warnings in libc++abi tests 2016-12-24 00:37:13 +00:00
test_aux_runtime_op_array_new.pass.cpp Fix warnings in libc++abi tests 2016-12-24 00:37:13 +00:00
test_demangle.pass.cpp [demangler] Support for fold expressions. 2018-04-09 18:33:01 +00:00
test_exception_address_alignment.pass.cpp Fix exception address alignment test for EHABI 2017-04-04 14:03:54 +00:00
test_exception_storage.pass.cpp Move _LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS macro to build system 2018-04-29 23:05:11 +00:00
test_fallback_malloc.pass.cpp [libcxxabi] Introduce an externally threaded libc++abi variant. 2017-01-03 12:58:34 +00:00
test_guard.pass.cpp [libc++abi] Delete config.h 2017-03-30 23:31:33 +00:00
test_vector1.pass.cpp Fix warnings in libc++abi tests 2016-12-24 00:37:13 +00:00
test_vector2.pass.cpp Fix warnings in libc++abi tests 2016-12-24 00:37:13 +00:00
test_vector3.pass.cpp Fix warnings in libc++abi tests 2016-12-24 00:37:13 +00:00
testit
thread_local_destruction_order.pass.cpp [libc++abi] Mark failing test on Darwin as XFAIL 2016-12-13 02:43:04 +00:00
uncaught_exceptions.pass.cpp Fix signed comparison warning 2016-12-11 05:43:20 +00:00
unittest_demangle.pass.cpp [demangler] Improve variadic template support 2018-01-31 20:17:06 +00:00
unwind_01.pass.cpp Suppress unreachable code warning in unwind tests 2016-12-24 05:01:55 +00:00
unwind_02.pass.cpp Remove all usages of REQUIRES-ANY in the test suite. 2017-01-24 10:28:23 +00:00
unwind_03.pass.cpp Remove all usages of REQUIRES-ANY in the test suite. 2017-01-24 10:28:23 +00:00
unwind_04.pass.cpp Remove all usages of REQUIRES-ANY in the test suite. 2017-01-24 10:28:23 +00:00
unwind_05.pass.cpp Remove all usages of REQUIRES-ANY in the test suite. 2017-01-24 10:28:23 +00:00
unwind_06.pass.cpp Fix warnings in libc++abi tests 2016-12-24 00:37:13 +00:00