diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-05-31 13:57:55 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-05-31 14:07:16 +0000 |
| commit | 3c02cfc3e7e52ce023b565180c63c72bd7ab675d (patch) | |
| tree | 83d26b9cc9f258a5765790cf547913b1cbcfafb0 /tests/codegen | |
| parent | 81b07edde87f94492051c7cd07478d2715939d80 (diff) | |
Explain the reason for why a test exists
Diffstat (limited to 'tests/codegen')
| -rw-r--r-- | tests/codegen/const_scalar_pair.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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) } |
