1 // compile-flags: -C no-prepopulate-passes
10 // CHECK-LABEL: @test1
11 // CHECK: store i32 0, {{i32\*|ptr}} %{{.+}}, align 16
12 // CHECK: store i32 1, {{i32\*|ptr}} %{{.+}}, align 4
13 // CHECK: store i32 2, {{i32\*|ptr}} %{{.+}}, align 8
14 // CHECK: store i32 3, {{i32\*|ptr}} %{{.+}}, align 4
16 pub fn test1(s: &mut S) {
23 // CHECK-LABEL: @test2
24 // CHECK: store i32 4, {{i32\*|ptr}} %{{.+}}, align 4
25 #[allow(unconditional_panic)]
27 pub fn test2(s: &mut S) {
28 s.arr[usize::MAX / 4 + 1] = 4;
31 // CHECK-LABEL: @test3
32 // CHECK: store i32 5, {{i32\*|ptr}} %{{.+}}, align 4
34 pub fn test3(s: &mut S, i: usize) {
38 // CHECK-LABEL: @test4
39 // CHECK: store i32 6, {{i32\*|ptr}} %{{.+}}, align 4
41 pub fn test4(s: &mut S) {