[all-commits] [llvm/llvm-project] 81af81: [test] Add basic _Unwind_ForcedUnwind + exception ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Feb 2 09:35:49 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 81af8149d8cb8ff65f2569d813252fab2a14df00
      https://github.com/llvm/llvm-project/commit/81af8149d8cb8ff65f2569d813252fab2a14df00
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    A libcxxabi/test/forced_unwind1.pass.cpp
    A libcxxabi/test/forced_unwind2.pass.cpp

  Log Message:
  -----------
  [test] Add basic _Unwind_ForcedUnwind + exception tests

Forced unwinding is like a foreign exception, which can be caught by `catch (...)` and rethrown.
If not rethrown, `__cxa_end_cath` will call `_Unwind_DeleteException` to destroy the object.

The behavior going through empty `throw()` and non-empty `throw(int)` is not
clear (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98785), so I do not add such
tests.

Differential Revision: https://reviews.llvm.org/D95200




More information about the All-commits mailing list