From 3c02cfc3e7e52ce023b565180c63c72bd7ab675d Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Wed, 31 May 2023 13:57:55 +0000 Subject: [PATCH] Explain the reason for why a test exists --- tests/codegen/const_scalar_pair.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/codegen/const_scalar_pair.rs b/tests/codegen/const_scalar_pair.rs index 8f32c50b798..aa4cf7a64d5 100644 --- a/tests/codegen/const_scalar_pair.rs +++ b/tests/codegen/const_scalar_pair.rs @@ -2,6 +2,8 @@ #![feature(inline_const)] +// 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. pub fn foo() -> (i32, i32) { // CHECK: ret { i32, i32 } { i32 1, i32 2 } const { (1, 2) }