diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-10-24 12:22:23 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-10-24 12:22:23 +0000 |
| commit | a302610016bd8299aff79c38f5a6b95ec1c112ba (patch) | |
| tree | 18e4b9ee1af8227dea0407e64116e8f08301b5be /example | |
| parent | e472b5573a04c7e41208199c09a5a501cf972cf8 (diff) | |
| download | rust-a302610016bd8299aff79c38f5a6b95ec1c112ba.tar.gz rust-a302610016bd8299aff79c38f5a6b95ec1c112ba.zip | |
Merge commit '93a5433f17ab5ed48cc88f1e69b0713b16183373' into sync_cg_clif-2023-10-24
Diffstat (limited to 'example')
| -rw-r--r-- | example/mini_core_hello_world.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/example/mini_core_hello_world.rs b/example/mini_core_hello_world.rs index 91de04d9770..afc51a47f14 100644 --- a/example/mini_core_hello_world.rs +++ b/example/mini_core_hello_world.rs @@ -353,6 +353,17 @@ fn main() { let f = V([0.0, 1.0]); let _a = f.0[0]; + + stack_val_align(); +} + +#[inline(never)] +fn stack_val_align() { + #[repr(align(8192))] + struct Foo(u8); + + let a = Foo(0); + assert_eq!(&a as *const Foo as usize % 8192, 0); } #[cfg(all( |
