Skip to content

Commit a4fa667

Browse files
committed
[libc++abi] Disable _Unwind_ForcedUnwind + exception tests for ARM EHABI
libunwind ARM EHABI does not support _Unwind_ForcedUnwind yet. In addition, ARM EHABI makes `_Unwind_Exception` a typedef so `struct _Unwind_Exception*` cannot be used.
1 parent 38a2858 commit a4fa667

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

libcxxabi/test/forced_unwind1.pass.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
#include <unwind.h>
1717
#include <tuple>
1818

19+
#if defined(_LIBCXXABI_ARM_EHABI)
20+
int main() {}
21+
#else
1922
static int bits = 0;
2023

2124
struct C {
@@ -75,3 +78,4 @@ int main() {
7578
test();
7679
return bits != 15;
7780
}
81+
#endif

libcxxabi/test/forced_unwind2.pass.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#include <unwind.h>
1818
#include <tuple>
1919

20+
#if defined(_LIBCXXABI_ARM_EHABI)
21+
int main() {}
22+
#else
2023
template <typename T>
2124
struct Stop;
2225

@@ -55,3 +58,4 @@ int main() {
5558
}
5659
abort();
5760
}
61+
#endif

0 commit comments

Comments
 (0)