about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2022-01-12 20:45:31 +0000
committerAmanieu d'Antras <amanieu@gmail.com>2022-01-17 00:39:34 +0000
commitfe9dc6e62a312bc2fe01bb5ea65ea5d027ce878d (patch)
tree945ace8c55bb41eb8ab713d06f0174b36d39d316 /src/test/codegen
parent528c4f9158ead3df8cecb51663db50e711fec377 (diff)
downloadrust-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.rs2
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();