Skip to content

Commit b7183bd

Browse files
authored
Rollup merge of #113957 - Urgau:regression-test-issue-113941, r=dtolnay
Add regression test for issue #113941 - naive layout isn't refined This PR adds a regression test for issue #113941 - `the naive layout isn't refined by the actual layout` based on the minimized repro #113941 (comment).
2 parents 00e1475 + ffa4b6f commit b7183bd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/ui/layout/issue-113941.rs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// build-pass
2+
// revisions: normal randomize-layout
3+
// [randomize-layout]compile-flags: -Zrandomize-layout
4+
5+
enum Void {}
6+
7+
pub struct Struct([*const (); 0], Void);
8+
9+
pub enum Enum {
10+
Variant(Struct),
11+
}
12+
13+
fn main() {}

0 commit comments

Comments
 (0)