Skip to content

Commit

Permalink
Make test non-GCC-compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
bsilver8192 committed Feb 27, 2022
1 parent 2d1a388 commit 29a0ed6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integration-tests/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9368,6 +9368,7 @@ fn test_tricky_destructors() {
let cxx = "";
let hdr = indoc! {"
#include <stdio.h>
#include <stdlib.h>
// A simple type to let Rust verify the destructor is run.
struct DestructorFlag {
DestructorFlag() = default;
Expand All @@ -9378,7 +9379,7 @@ fn test_tricky_destructors() {
if (!flag) return;
if (*flag) {
fprintf(stderr, \"DestructorFlag is already set\\n\");
__builtin_trap();
abort();
}
*flag = true;
// Note we deliberately do NOT clear the value of `flag`, to catch Rust calling
Expand Down

0 comments on commit 29a0ed6

Please sign in to comment.