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:
1 parent
2a323ac869
commit
0200472671
3 files changed
+57
-2
No files matched your search
+1
-1
@@ -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 \
|
||||
|
||||
Reference in new issue
Block a user