about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/tools/generate_intrinsics.py
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-08-14 14:17:53 +0200
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-08-14 16:00:17 +0200
commitf6c2816f4779eae60e9d2eb12f72b6450c789864 (patch)
treefb4987e4a96db0cbbec94679bc27f7bbe8776c0a /compiler/rustc_codegen_gcc/tools/generate_intrinsics.py
parent2fbc08e2ce64dee45a29cb6133da6b32366268aa (diff)
downloadrust-f6c2816f4779eae60e9d2eb12f72b6450c789864.tar.gz
rust-f6c2816f4779eae60e9d2eb12f72b6450c789864.zip
Add tests for the drop behavior of some control flow constructs
In #100513 it was shown that the drop behavior of let_chains is not correct
currently. Since drop behavior is something pretty subtle, this adds
explicit tests for the drop behavior of `if`, `if let` and `match` to
make sure that it does not regress in the future.

The `println!`s were left in to make debugging easier in case something
goes wrong, but they are not required for the test.
Diffstat (limited to 'compiler/rustc_codegen_gcc/tools/generate_intrinsics.py')
0 files changed, 0 insertions, 0 deletions