File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,32 @@ pub fn shrink_to_fit(vec: &mut Vec<u32>) {
16
16
// CHECK-LABEL: @issue71861
17
17
#[ no_mangle]
18
18
pub fn issue71861 ( vec : Vec < u32 > ) -> Box < [ u32 ] > {
19
+ // CHECK-NOT: panic
20
+
21
+ // Call to panic_no_unwind in case of double-panic is expected,
22
+ // but other panics are not.
23
+ // CHECK: cleanup
24
+ // CHECK-NEXT: ; call core::panicking::panic_no_unwind
25
+ // CHECK-NEXT: panic_no_unwind
26
+
19
27
// CHECK-NOT: panic
20
28
vec. into_boxed_slice ( )
21
29
}
22
30
23
31
// CHECK-LABEL: @issue75636
24
32
#[ no_mangle]
25
33
pub fn issue75636 < ' a > ( iter : & [ & ' a str ] ) -> Box < [ & ' a str ] > {
34
+ // CHECK-NOT: panic
35
+
36
+ // Call to panic_no_unwind in case of double-panic is expected,
37
+ // but other panics are not.
38
+ // CHECK: cleanup
39
+ // CHECK-NEXT: ; call core::panicking::panic_no_unwind
40
+ // CHECK-NEXT: panic_no_unwind
41
+
26
42
// CHECK-NOT: panic
27
43
iter. iter ( ) . copied ( ) . collect ( )
28
44
}
45
+
46
+ // CHECK: ; core::panicking::panic_no_unwind
47
+ // CHECK: declare void @{{.*}}panic_no_unwind
You can’t perform that action at this time.
0 commit comments