Skip to content

Commit 5f66c41

Browse files
committed
Add regression test
1 parent eb9da7b commit 5f66c41

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/codegen/const_scalar_pair.rs

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// compile-flags: --crate-type=lib -Copt-level=0 -Zmir-opt-level=0 -C debuginfo=2
2+
3+
// CHECK: @0 = private unnamed_addr constant <{ [8 x i8] }> <{ [8 x i8] c"\01\00\00\00\02\00\00\00" }>, align 4
4+
5+
#![feature(inline_const)]
6+
7+
pub fn foo() -> (i32, i32) {
8+
// CHECK: %0 = load i32, ptr @0, align 4
9+
const { (1, 2) }
10+
}

0 commit comments

Comments
 (0)