diff options
| author | bors <bors@rust-lang.org> | 2024-07-16 05:46:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-07-16 05:46:31 +0000 |
| commit | 451035fff364e81cc63d15bd475da8ba32e01470 (patch) | |
| tree | b24a14bb4f49de11c1ed351b24910d00a32f4a95 /compiler/rustc_codegen_gcc/tests/run/assign.rs | |
| parent | e90f04731a382a27962a30113f8283a59a6ab87e (diff) | |
| parent | 547ade539c578c8a39b02841c3ef4ae980f5c658 (diff) | |
| download | rust-451035fff364e81cc63d15bd475da8ba32e01470.tar.gz rust-451035fff364e81cc63d15bd475da8ba32e01470.zip | |
Auto merge of #3751 - rust-lang:rustup-2024-07-16, r=RalfJung
Automatic Rustup
Diffstat (limited to 'compiler/rustc_codegen_gcc/tests/run/assign.rs')
| -rw-r--r-- | compiler/rustc_codegen_gcc/tests/run/assign.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_gcc/tests/run/assign.rs b/compiler/rustc_codegen_gcc/tests/run/assign.rs index 5b0db2da294..e105d64a8ad 100644 --- a/compiler/rustc_codegen_gcc/tests/run/assign.rs +++ b/compiler/rustc_codegen_gcc/tests/run/assign.rs @@ -120,6 +120,12 @@ impl Add for isize { } } +#[track_caller] +#[lang = "panic_const_add_overflow"] +pub fn panic_const_add_overflow() -> ! { + panic("attempt to add with overflow"); +} + /* * Code */ |
