]>
git.proxmox.com Git - rustc.git/blob - src/test/codegen/issue-56927.rs
1 // compile-flags: -C no-prepopulate-passes
11 // CHECK-LABEL: @test1
12 // CHECK: store i32 0, i32* %{{.+}}, align 16
13 // CHECK: store i32 1, i32* %{{.+}}, align 4
14 // CHECK: store i32 2, i32* %{{.+}}, align 8
15 // CHECK: store i32 3, i32* %{{.+}}, align 4
17 pub fn test1(s
: &mut S
) {
24 // CHECK-LABEL: @test2
25 // CHECK: store i32 4, i32* %{{.+}}, align 4
28 pub fn test2(s
: &mut S
) {
29 s
.arr
[usize::MAX
/ 4 + 1] = 4;
32 // CHECK-LABEL: @test3
33 // CHECK: store i32 5, i32* %{{.+}}, align 4
35 pub fn test3(s
: &mut S
, i
: usize) {
39 // CHECK-LABEL: @test4
40 // CHECK: store i32 6, i32* %{{.+}}, align 4
42 pub fn test4(s
: &mut S
) {