about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-11-23 20:50:16 +0800
committerGitHub <noreply@github.com>2024-11-23 20:50:16 +0800
commitae4fdf1445e6808a5268dd6590858a4713d62085 (patch)
tree685db4f3248586d83d65f1862efa7e7acfd5dd47 /compiler/rustc_codegen_llvm/src
parent75b8f433e38dfed6aa16a42137bf048d8e668d27 (diff)
parent8578ccc7add524147a8c524a336b050fb7647087 (diff)
downloadrust-ae4fdf1445e6808a5268dd6590858a4713d62085.tar.gz
rust-ae4fdf1445e6808a5268dd6590858a4713d62085.zip
Rollup merge of #133355 - chorman0773:spec-layout-tests, r=jieyouxu
Add language tests for aggregate types

This adds some tests for struct and union types, ensuring that they satisfy the rules for all structs and unions - namely that fields of structs do not overlap, fields are well-aligned, and the size of the entire.

The reference annotations used are from https://github.com/rust-lang/reference/pull/1654, though the rules tested here were FCPed in <https://github.com/rust-lang/reference/pull/1152>.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions