llvm-project/libcxxabi/test
Aaron Puchert 4491bb19df [libcxxabi] Fix forced_unwind3.pass.cpp compilation error
Under some circumstances there is no struct _Unwind_Exception, it's just
an alias to another struct. This would result in an error like this:

libcxxabi/test/forced_unwind3.pass.cpp:50:77: error: typedef '_Unwind_Exception' cannot be referenced with a struct specifier
  static _Unwind_Reason_Code stop(int, _Unwind_Action actions, type, struct _Unwind_Exception*, struct _Unwind_Context*,
                                                                            ^
<...>/lib/clang/15.0.0/include/unwind.h:68:38: note: declared here
typedef struct _Unwind_Control_Block _Unwind_Exception; /* Alias */
                                     ^

This seems to have been an issue since the test was first added in
D109856, except that it didn't surface with Clang 14 because the code
is filtered out by the preprocessor if `__clang_major__ < 15`.

Reviewed By: danielkiss, mstorsjo, #libc_abi, ldionne

Differential Revision: https://reviews.llvm.org/D132873
2022-09-11 20:44:38 +02:00
..
configs
libcxxabi
native
support
vendor
CMakeLists.txt Revert the removal of LLVM_ENABLE_PROJECTS for libc++ and libc++abi 2022-08-23 09:58:30 -04:00
backtrace_test.pass.cpp
catch_array_01.pass.cpp
catch_array_02.pass.cpp
catch_class_01.pass.cpp
catch_class_02.pass.cpp
catch_class_03.pass.cpp
catch_class_04.pass.cpp
catch_const_pointer_nullptr.pass.cpp
catch_function_01.pass.cpp
catch_function_02.pass.cpp
catch_function_03.pass.cpp
catch_in_noexcept.pass.cpp
catch_member_data_pointer_01.pass.cpp
catch_member_function_pointer_01.pass.cpp
catch_member_function_pointer_02.pass.cpp
catch_member_pointer_nullptr.pass.cpp
catch_multi_level_pointer.pass.cpp
catch_pointer_nullptr.pass.cpp
catch_pointer_reference.pass.cpp
catch_ptr.pass.cpp
catch_ptr_02.pass.cpp
catch_reference_nullptr.pass.cpp
cxa_bad_cast.pass.cpp
cxa_bad_typeid.pass.cpp
cxa_thread_atexit_test.pass.cpp
cxa_vec_new_overflow_PR41395.pass.cpp
dynamic_cast.pass.cpp
dynamic_cast3.pass.cpp
dynamic_cast5.pass.cpp
dynamic_cast14.pass.cpp
dynamic_cast_stress.pass.cpp
exception_object_alignment.2.pass.cpp
exception_object_alignment.pass.cpp
forced_unwind1.pass.cpp
forced_unwind2.pass.cpp
forced_unwind3.pass.cpp [libcxxabi] Fix forced_unwind3.pass.cpp compilation error 2022-09-11 20:44:38 +02:00
forced_unwind4.pass.cpp
guard_test_basic.pass.cpp
guard_threaded_test.pass.cpp
incomplete_type.sh.cpp
inherited_exception.pass.cpp
lit.cfg.py
lit.site.cfg.in
noexception1.pass.cpp
noexception2.pass.cpp
noexception3.pass.cpp
noexception4.pass.cpp
test_aux_runtime.pass.cpp
test_aux_runtime_op_array_new.pass.cpp
test_demangle.pass.cpp
test_exception_address_alignment.pass.cpp
test_exception_storage.pass.cpp
test_fallback_malloc.pass.cpp
test_guard.pass.cpp
test_vector1.pass.cpp
test_vector2.pass.cpp
test_vector3.pass.cpp
thread_local_destruction_order.pass.cpp
uncaught_exception.pass.cpp
uncaught_exceptions.pass.cpp
unittest_demangle.pass.cpp
unwind_01.pass.cpp
unwind_02.pass.cpp
unwind_03.pass.cpp
unwind_04.pass.cpp
unwind_05.pass.cpp
unwind_06.pass.cpp