Files
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

95 lines
2.6 KiB
C

// RUN: %clang_cc1 -emit-llvm -triple s390x-ibm-zos -fzos-extensions -fdump-record-layouts < %s | FileCheck %s --check-prefix=PTR32-ZOS
// RUN: %clang_cc1 -emit-llvm -triple s390x-ibm-linux -fzos-extensions -fdump-record-layouts < %s | FileCheck %s --check-prefix=PTR32-LINUX
// RUN: %clang_cc1 -emit-llvm -triple s390x-linux-gnu -fzos-extensions -fdump-record-layouts < %s | FileCheck %s --check-prefix=PTR32-LINUX
// PTR32-ZOS: 0 | struct s1
// PTR32-ZOS-NEXT: 0 | long a
// PTR32-ZOS-NEXT: 8 | int b
// PTR32-ZOS-NEXT: 12 | int * __ptr32 c
// PTR32-ZOS-NEXT: 16 | int d
// PTR32-ZOS-NEXT: | [sizeof=24, align=8]
// PTR32-LINUX: 0 | struct s1
// PTR32-LINUX-NEXT: 0 | long a
// PTR32-LINUX-NEXT: 8 | int b
// PTR32-LINUX-NEXT: 16 | int * __ptr32 c
// PTR32-LINUX-NEXT: 24 | int d
// PTR32-LINUX-NEXT: | [sizeof=32, align=8]
struct s1 {
long a;
int b;
int * __ptr32 c;
int d;
} S1;
// PTR32-ZOS: 0 | struct s2
// PTR32-ZOS-NEXT: 0 | long a
// PTR32-ZOS-NEXT: 8 | int b
// PTR32-ZOS-NEXT: 16 | int * c
// PTR32-ZOS-NEXT: 24 | int d
// PTR32-ZOS-NEXT: | [sizeof=32, align=8]
// PTR32-LINUX: 0 | struct s2
// PTR32-LINUX-NEXT: 0 | long a
// PTR32-LINUX-NEXT: 8 | int b
// PTR32-LINUX-NEXT: 16 | int * c
// PTR32-LINUX-NEXT: 24 | int d
// PTR32-LINUX-NEXT: | [sizeof=32, align=8]
struct s2 {
long a;
int b;
int *c;
int d;
} S2;
// PTR32-ZOS: 0 | struct s3
// PTR32-ZOS-NEXT: 0 | int a
// PTR32-ZOS-NEXT: 4 | int * __ptr32 b
// PTR32-ZOS-NEXT: 8 | int * __ptr32 c
// PTR32-ZOS-NEXT: 12 | int * d
// PTR32-ZOS-NEXT: | [sizeof=20, align=1]
struct __attribute__((packed)) s3 {
int a;
int *__ptr32 b;
int *__ptr32 c;
int *d;
};
struct s3 S3;
// PTR32-ZOS: 0 | union u1
// PTR32-ZOS-NEXT: 0 | int * __ptr32 a
// PTR32-ZOS-NEXT: 0 | int * b
// PTR32-ZOS-NEXT: | [sizeof=8, align=8]
// PTR32-LINUX: 0 | union u1
// PTR32-LINUX-NEXT: 0 | int * __ptr32 a
// PTR32-LINUX-NEXT: 0 | int * b
// PTR32-LINUX-NEXT: | [sizeof=8, align=8]
union u1 {
int *__ptr32 a;
int *b;
} U1;
// PTR32-ZOS: 0 | union u2
// PTR32-ZOS-NEXT: 0 | int * __ptr32 a
// PTR32-ZOS-NEXT: 0 | int * b
// PTR32-ZOS-NEXT: | [sizeof=8, align=1]
union __attribute__((packed)) u2 {
int *__ptr32 a;
int *b;
};
union u2 U2;
// PTR32-ZOS: 0 | union u3
// PTR32-ZOS-NEXT: 0 | int * __ptr32 a
// PTR32-ZOS-NEXT: 0 | short b
// PTR32-ZOS-NEXT: | [sizeof=4, align=1]
union __attribute__((packed)) u3 {
int *__ptr32 a;
short b;
};
union u3 U3;