File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
tests/run-make-cargo/panic-immediate-abort Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,10 @@ pub fn bounds_check(x: &[u8], idx: usize) -> &u8 {
32
32
33
33
#[ unsafe( no_mangle) ]
34
34
pub fn str_bounds_check ( x : & str , idx : usize ) -> & str {
35
- // So is this one
36
35
// CHECK-LABEL: @str_bounds_check(
36
+ // CHECK-NOT: call
37
+ // CHECK: tail call void @llvm.trap()
38
+ // CHECK-NOT: call
37
39
& x[ idx..]
38
40
}
39
41
@@ -53,8 +55,9 @@ pub fn unsigned_integer_div(x: u16, y: u16) -> u16 {
53
55
54
56
#[ unsafe( no_mangle) ]
55
57
pub fn refcell_already_borrowed ( ) {
56
- // This test is currently broken, because it panic helper doesn't get inlined
57
58
// CHECK-LABEL: @refcell_already_borrowed(
59
+ // CHECK-NEXT: bb1.i2
60
+ // CHECK-NEXT: tail call void @llvm.trap()
58
61
let r = core:: cell:: RefCell :: new ( 0u8 ) ;
59
62
let _guard = r. borrow_mut ( ) ;
60
63
r. borrow_mut ( ) ;
You can’t perform that action at this time.
0 commit comments