test: Add a testcase for cleanup of C++ destructors while doing longjmp

For x86_64 and aarch64, this requires https://reviews.llvm.org/D89231.

The C++ destructors aren't executed while doing the longjmp (contrary
to how it works MSVC's C++ exceptions), but it no longer crashes.
This commit is contained in:
Martin Storsjö committed 2021-04-15 11:36:20 +03:00
1 parent 2a323ac869
commit 0200472671
3 files changed
+57 -2

No files matched your search

+1 -1
View File
@@ -92,7 +92,7 @@ COPY test/*.cpp ./test/
RUN cd test && \
for arch in $TOOLCHAIN_ARCHS; do \
mkdir -p $arch && \
for test in hello-cpp hello-exception tlstest-main exception-locale exception-reduced global-terminate; do \
for test in hello-cpp hello-exception tlstest-main exception-locale exception-reduced global-terminate longjmp-cleanup; do \
$arch-w64-mingw32-clang++ $test.cpp -o $arch/$test.exe || exit 1; \
done; \
for test in hello-exception; do \