Skip to content

Commit

Permalink
Explain the reason for why a test exists
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed May 31, 2023
1 parent 81b07ed commit 3c02cfc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/codegen/const_scalar_pair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down

0 comments on commit 3c02cfc

Please sign in to comment.