diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2022-01-12 20:45:31 +0000 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2022-01-17 00:39:34 +0000 |
| commit | fe9dc6e62a312bc2fe01bb5ea65ea5d027ce878d (patch) | |
| tree | 945ace8c55bb41eb8ab713d06f0174b36d39d316 /src/test/codegen | |
| parent | 528c4f9158ead3df8cecb51663db50e711fec377 (diff) | |
| download | rust-fe9dc6e62a312bc2fe01bb5ea65ea5d027ce878d.tar.gz rust-fe9dc6e62a312bc2fe01bb5ea65ea5d027ce878d.zip | |
Change TerminatorKind::Abort to call the panic handler instead of
aborting immediately. The panic handler is called with a special flag which forces it to abort after calling the panic hook.
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/unwind-and-panic-abort.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/codegen/unwind-and-panic-abort.rs b/src/test/codegen/unwind-and-panic-abort.rs index 05d97f3256a..f238741e599 100644 --- a/src/test/codegen/unwind-and-panic-abort.rs +++ b/src/test/codegen/unwind-and-panic-abort.rs @@ -9,7 +9,7 @@ extern "C-unwind" { // CHECK: Function Attrs:{{.*}}nounwind // CHECK-NEXT: define{{.*}}void @foo -// CHECK: call void @llvm.trap() +// CHECK: call void @_ZN4core9panicking15panic_no_unwind #[no_mangle] pub unsafe extern "C" fn foo() { bar(); |
