diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2025-06-18 23:32:15 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2025-07-03 22:53:19 -0700 |
| commit | caeacba78a790031ebf262ef952f79795fdc9cc9 (patch) | |
| tree | 000e2d8717bc34aa1074acf8e56f170991133d5e /tests/codegen/align-struct.rs | |
| parent | 837c5dd7de03aa97190593aef4e70d53e1bb574b (diff) | |
| download | rust-caeacba78a790031ebf262ef952f79795fdc9cc9.tar.gz rust-caeacba78a790031ebf262ef952f79795fdc9cc9.zip | |
Allow all MIR `Aggregate`s to take the operand path (if layout permits)
Diffstat (limited to 'tests/codegen/align-struct.rs')
| -rw-r--r-- | tests/codegen/align-struct.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/codegen/align-struct.rs b/tests/codegen/align-struct.rs index 402a184d4c0..d4cc65e9158 100644 --- a/tests/codegen/align-struct.rs +++ b/tests/codegen/align-struct.rs @@ -15,9 +15,11 @@ pub struct Nested64 { d: i8, } +// This has the extra field in B to ensure it's not ScalarPair, +// and thus that the test actually emits it via memory, not `insertvalue`. pub enum Enum4 { A(i32), - B(i32), + B(i32, i32), } pub enum Enum64 { @@ -54,7 +56,7 @@ pub fn nested64(a: Align64, b: i32, c: i32, d: i8) -> Nested64 { // CHECK-LABEL: @enum4 #[no_mangle] pub fn enum4(a: i32) -> Enum4 { - // CHECK: %e4 = alloca [8 x i8], align 4 + // CHECK: %e4 = alloca [12 x i8], align 4 let e4 = Enum4::A(a); e4 } |
