We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb9da7b commit 5f66c41Copy full SHA for 5f66c41
tests/codegen/const_scalar_pair.rs
@@ -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