[libcxx-commits] [PATCH] D96378: [libc++abi] Fix forced_unwind tests failures on ARM/EHABI targets.
Vlad Vereschaka via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Feb 10 10:16:44 PST 2021
vvereschaka updated this revision to Diff 322733.
vvereschaka edited the summary of this revision.
vvereschaka added a comment.
You are right, we don't need it. I did a copy/paste from another test.
Updated diff without cxxabi.h.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96378/new/
https://reviews.llvm.org/D96378
Files:
libcxxabi/test/forced_unwind1.pass.cpp
libcxxabi/test/forced_unwind2.pass.cpp
Index: libcxxabi/test/forced_unwind2.pass.cpp
===================================================================
--- libcxxabi/test/forced_unwind2.pass.cpp
+++ libcxxabi/test/forced_unwind2.pass.cpp
@@ -16,9 +16,12 @@
#include <string.h>
#include <unwind.h>
#include <tuple>
+#include <__cxxabi_config.h>
#if defined(_LIBCXXABI_ARM_EHABI)
-int main() {}
+int main() {
+ return 0;
+}
#else
template <typename T>
struct Stop;
Index: libcxxabi/test/forced_unwind1.pass.cpp
===================================================================
--- libcxxabi/test/forced_unwind1.pass.cpp
+++ libcxxabi/test/forced_unwind1.pass.cpp
@@ -15,9 +15,12 @@
#include <string.h>
#include <unwind.h>
#include <tuple>
+#include <__cxxabi_config.h>
#if defined(_LIBCXXABI_ARM_EHABI)
-int main() {}
+int main() {
+ return 0;
+}
#else
static int bits = 0;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96378.322733.patch
Type: text/x-patch
Size: 857 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210210/d1fa84d1/attachment.bin>
More information about the libcxx-commits
mailing list