mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Add regression test
This commit is contained in:
parent
eb9da7bfa3
commit
5f66c41921
10
tests/codegen/const_scalar_pair.rs
Normal file
10
tests/codegen/const_scalar_pair.rs
Normal file
@ -0,0 +1,10 @@
|
||||
// compile-flags: --crate-type=lib -Copt-level=0 -Zmir-opt-level=0 -C debuginfo=2
|
||||
|
||||
// CHECK: @0 = private unnamed_addr constant <{ [8 x i8] }> <{ [8 x i8] c"\01\00\00\00\02\00\00\00" }>, align 4
|
||||
|
||||
#![feature(inline_const)]
|
||||
|
||||
pub fn foo() -> (i32, i32) {
|
||||
// CHECK: %0 = load i32, ptr @0, align 4
|
||||
const { (1, 2) }
|
||||
}
|
Loading…
Reference in New Issue
Block a user