2023-05-26 09:53:24 -05:00
|
|
|
//@ compile-flags: --crate-type=lib -Copt-level=0 -Zmir-opt-level=0 -C debuginfo=2
|
|
|
|
|
2023-05-31 08:57:55 -05:00
|
|
|
// Test that we don't generate a memory allocation for the constant
|
|
|
|
// and read the fields from that, but instead just create the value pair directly.
|
2023-05-26 09:53:24 -05:00
|
|
|
pub fn foo() -> (i32, i32) {
|
2023-05-19 10:48:43 -05:00
|
|
|
// CHECK: ret { i32, i32 } { i32 1, i32 2 }
|
2023-05-26 09:53:24 -05:00
|
|
|
const { (1, 2) }
|
|
|
|
}
|