Skip to content

Commit fb8c993

Browse files
committed
fix label suffix
1 parent 2bead27 commit fb8c993

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

tests/assembly/stack-protector/stack-protector-heuristics-effect.rs

+16-16
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#![allow(incomplete_features)]
2020
#![feature(unsized_locals, unsized_fn_params)]
2121

22-
// CHECK-LABEL: emptyfn
22+
// CHECK-LABEL: emptyfn{{:|\[}}
2323
#[no_mangle]
2424
pub fn emptyfn() {
2525
// all: __stack_chk_fail
@@ -29,7 +29,7 @@ pub fn emptyfn() {
2929
// missing-NOT: __stack_chk_fail
3030
}
3131

32-
// CHECK-LABEL: array_char
32+
// CHECK-LABEL: array_char{{:|\[}}
3333
#[no_mangle]
3434
pub fn array_char(f: fn(*const char)) {
3535
let a = ['c'; 1];
@@ -47,7 +47,7 @@ pub fn array_char(f: fn(*const char)) {
4747
// missing-NOT: __stack_chk_fail
4848
}
4949

50-
// CHECK-LABEL: array_u8_1
50+
// CHECK-LABEL: array_u8_1{{:|\[}}
5151
#[no_mangle]
5252
pub fn array_u8_1(f: fn(*const u8)) {
5353
let a = [0u8; 1];
@@ -63,7 +63,7 @@ pub fn array_u8_1(f: fn(*const u8)) {
6363
// missing-NOT: __stack_chk_fail
6464
}
6565

66-
// CHECK-LABEL: array_u8_small
66+
// CHECK-LABEL: array_u8_small{{:|\[}}
6767
#[no_mangle]
6868
pub fn array_u8_small(f: fn(*const u8)) {
6969
let a = [0u8; 2];
@@ -80,7 +80,7 @@ pub fn array_u8_small(f: fn(*const u8)) {
8080
// missing-NOT: __stack_chk_fail
8181
}
8282

83-
// CHECK-LABEL: array_u8_large
83+
// CHECK-LABEL: array_u8_large{{:|\[}}
8484
#[no_mangle]
8585
pub fn array_u8_large(f: fn(*const u8)) {
8686
let a = [0u8; 9];
@@ -99,7 +99,7 @@ pub fn array_u8_large(f: fn(*const u8)) {
9999
#[derive(Copy, Clone)]
100100
pub struct ByteSizedNewtype(u8);
101101

102-
// CHECK-LABEL: array_bytesizednewtype_9
102+
// CHECK-LABEL: array_bytesizednewtype_9{{:|\[}}
103103
#[no_mangle]
104104
pub fn array_bytesizednewtype_9(f: fn(*const ByteSizedNewtype)) {
105105
let a = [ByteSizedNewtype(0); 9];
@@ -115,7 +115,7 @@ pub fn array_bytesizednewtype_9(f: fn(*const ByteSizedNewtype)) {
115115
// missing-NOT: __stack_chk_fail
116116
}
117117

118-
// CHECK-LABEL: local_var_addr_used_indirectly
118+
// CHECK-LABEL: local_var_addr_used_indirectly{{:|\[}}
119119
#[no_mangle]
120120
pub fn local_var_addr_used_indirectly(f: fn(bool)) {
121121
let a = 5;
@@ -142,7 +142,7 @@ pub fn local_var_addr_used_indirectly(f: fn(bool)) {
142142
// missing-NOT: __stack_chk_fail
143143
}
144144

145-
// CHECK-LABEL: local_string_addr_taken
145+
// CHECK-LABEL: local_string_addr_taken{{:|\[}}
146146
#[no_mangle]
147147
pub fn local_string_addr_taken(f: fn(&String)) {
148148
let x = String::new();
@@ -168,7 +168,7 @@ impl SelfByRef for i32 {
168168
}
169169
}
170170

171-
// CHECK-LABEL: local_var_addr_taken_used_locally_only
171+
// CHECK-LABEL: local_var_addr_taken_used_locally_only{{:|\[}}
172172
#[no_mangle]
173173
pub fn local_var_addr_taken_used_locally_only(factory: fn() -> i32, sink: fn(i32)) {
174174
let x = factory();
@@ -195,7 +195,7 @@ pub struct Gigastruct {
195195
members: u64,
196196
}
197197

198-
// CHECK-LABEL: local_large_var_moved
198+
// CHECK-LABEL: local_large_var_moved{{:|\[}}
199199
#[no_mangle]
200200
pub fn local_large_var_moved(f: fn(Gigastruct)) {
201201
let x = Gigastruct { does: 0, not: 1, have: 2, array: 3, members: 4 };
@@ -224,7 +224,7 @@ pub fn local_large_var_moved(f: fn(Gigastruct)) {
224224
// missing-NOT: __stack_chk_fail
225225
}
226226

227-
// CHECK-LABEL: local_large_var_cloned
227+
// CHECK-LABEL: local_large_var_cloned{{:|\[}}
228228
#[no_mangle]
229229
pub fn local_large_var_cloned(f: fn(Gigastruct)) {
230230
f(Gigastruct { does: 0, not: 1, have: 2, array: 3, members: 4 });
@@ -281,7 +281,7 @@ extern "C" {
281281
fn alloca(size: usize) -> *mut ();
282282
}
283283

284-
// CHECK-LABEL: alloca_small_compile_time_constant_arg
284+
// CHECK-LABEL: alloca_small_compile_time_constant_arg{{:|\[}}
285285
#[no_mangle]
286286
pub fn alloca_small_compile_time_constant_arg(f: fn(*mut ())) {
287287
f(unsafe { alloca(8) });
@@ -293,7 +293,7 @@ pub fn alloca_small_compile_time_constant_arg(f: fn(*mut ())) {
293293
// missing-NOT: __stack_chk_fail
294294
}
295295

296-
// CHECK-LABEL: alloca_large_compile_time_constant_arg
296+
// CHECK-LABEL: alloca_large_compile_time_constant_arg{{:|\[}}
297297
#[no_mangle]
298298
pub fn alloca_large_compile_time_constant_arg(f: fn(*mut ())) {
299299
f(unsafe { alloca(9) });
@@ -305,7 +305,7 @@ pub fn alloca_large_compile_time_constant_arg(f: fn(*mut ())) {
305305
// missing-NOT: __stack_chk_fail
306306
}
307307

308-
// CHECK-LABEL: alloca_dynamic_arg
308+
// CHECK-LABEL: alloca_dynamic_arg{{:|\[}}
309309
#[no_mangle]
310310
pub fn alloca_dynamic_arg(f: fn(*mut ()), n: usize) {
311311
f(unsafe { alloca(n) });
@@ -324,7 +324,7 @@ pub fn alloca_dynamic_arg(f: fn(*mut ()), n: usize) {
324324
// this is support for the "unsized locals" unstable feature:
325325
// https://doc.rust-lang.org/unstable-book/language-features/unsized-locals.html.
326326

327-
// CHECK-LABEL: unsized_fn_param
327+
// CHECK-LABEL: unsized_fn_param{{:|\[}}
328328
#[no_mangle]
329329
pub fn unsized_fn_param(s: [u8], l: bool, f: fn([u8])) {
330330
let n = if l { 1 } else { 2 };
@@ -344,7 +344,7 @@ pub fn unsized_fn_param(s: [u8], l: bool, f: fn([u8])) {
344344
// missing-NOT: __stack_chk_fail
345345
}
346346

347-
// CHECK-LABEL: unsized_local
347+
// CHECK-LABEL: unsized_local{{:|\[}}
348348
#[no_mangle]
349349
pub fn unsized_local(s: &[u8], l: bool, f: fn(&mut [u8])) {
350350
let n = if l { 1 } else { 2 };

0 commit comments

Comments
 (0)