diff options
| author | bors <bors@rust-lang.org> | 2024-08-02 15:11:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-08-02 15:11:57 +0000 |
| commit | f82eb4d0a01e2dc782e582f7081439e172b858f9 (patch) | |
| tree | 554017590019be63d59b27930960605751ff0e35 /tests/run-make/cpp-global-destructors/foo.cpp | |
| parent | 53676730146e38e4697b6204c2ee61a9fd6b7e51 (diff) | |
| parent | 46b4083e6fa64445d714fff001ce92907980deb1 (diff) | |
Auto merge of #127926 - Oneirical:classical-orctestra, r=jieyouxu
Migrate `foreign-double-unwind`, `issue-36710` and `foreign-exceptions` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). ~~This is expected to fail CI, I am getting a weird `core dumped` error on `foreign-double-unwind` locally. Posting this to start a discussion.~~ EDIT: I got it, `foreign_double_unwind` is *supposed* to fail in the execution stage, but this wasn't obvious, because the original test was just piping the stdout to `CGREP` (which silently ignores errors). try-job: aarch64-apple try-job: armhf-gnu try-job: test-various try-job: x86_64-msvc try-job: x86_64-gnu-llvm-18 try-job: i686-msvc try-job: dist-i586-gnu-i586-i686-musl
Diffstat (limited to 'tests/run-make/cpp-global-destructors/foo.cpp')
| -rw-r--r-- | tests/run-make/cpp-global-destructors/foo.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/run-make/cpp-global-destructors/foo.cpp b/tests/run-make/cpp-global-destructors/foo.cpp new file mode 100644 index 00000000000..8f878c2c272 --- /dev/null +++ b/tests/run-make/cpp-global-destructors/foo.cpp @@ -0,0 +1,15 @@ +#include <stdint.h> + +struct A { + A() { v = 1234; } + ~A() { v = 1; } + uint32_t v; +}; + +A a; + +extern "C" { + uint32_t get() { + return a.v; + } +} |
