Skip to content

Commit 3c02cfc

Browse files
committed
Explain the reason for why a test exists
1 parent 81b07ed commit 3c02cfc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/codegen/const_scalar_pair.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#![feature(inline_const)]
44

5+
// Test that we don't generate a memory allocation for the constant
6+
// and read the fields from that, but instead just create the value pair directly.
57
pub fn foo() -> (i32, i32) {
68
// CHECK: ret { i32, i32 } { i32 1, i32 2 }
79
const { (1, 2) }

0 commit comments

Comments
 (0)