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
69 lines
2.5 KiB
C
69 lines
2.5 KiB
C
// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fsyntax-only -verify %s
|
|
// RUN: %clang_cc1 -triple i586-intel-elfiamcu -fsyntax-only -verify %s
|
|
|
|
int x __attribute__((aligned(3))); // expected-error {{requested alignment is not a power of 2}}
|
|
int y __attribute__((aligned(1ull << 33))); // expected-error {{requested alignment must be 4294967296 bytes or smaller}}
|
|
int y __attribute__((aligned(1ull << 32)));
|
|
|
|
// PR26444
|
|
int y __attribute__((aligned(1 << 29)));
|
|
int y __attribute__((aligned(1 << 28)));
|
|
|
|
// PR3254
|
|
short g0[3] __attribute__((aligned));
|
|
#ifdef __iamcu
|
|
short g0_chk[__alignof__(g0) == 4 ? 1 : -1];
|
|
#else
|
|
short g0_chk[__alignof__(g0) == 16 ? 1 : -1];
|
|
|
|
// GH50534
|
|
int z __attribute__((aligned((__int128_t)0x1234567890abcde0ULL << 64))); // expected-error {{requested alignment must be 4294967296 bytes or smaller}}
|
|
#endif
|
|
|
|
typedef char ueber_aligned_char __attribute__((aligned(8)));
|
|
|
|
struct struct_with_ueber_char {
|
|
ueber_aligned_char c;
|
|
};
|
|
|
|
char a = 0;
|
|
|
|
char a0[__alignof__(ueber_aligned_char) == 8? 1 : -1] = { 0 };
|
|
char a1[__alignof__(struct struct_with_ueber_char) == 8? 1 : -1] = { 0 };
|
|
char a2[__alignof__(a) == 1? : -1] = { 0 };
|
|
char a3[sizeof(a) == 1? : -1] = { 0 };
|
|
|
|
typedef long long __attribute__((aligned(1))) underaligned_longlong;
|
|
char a4[__alignof__(underaligned_longlong) == 1 ?: -1] = {0};
|
|
|
|
typedef long long __attribute__((aligned(1))) underaligned_complex_longlong;
|
|
char a5[__alignof__(underaligned_complex_longlong) == 1 ?: -1] = {0};
|
|
|
|
int b __attribute__((aligned(2)));
|
|
char b1[__alignof__(b) == 2 ?: -1] = {0};
|
|
|
|
struct C { int member __attribute__((aligned(2))); } c;
|
|
char c1[__alignof__(c) == 4 ?: -1] = {0};
|
|
char c2[__alignof__(c.member) == 4 ?: -1] = {0};
|
|
|
|
struct D { int member __attribute__((aligned(2))) __attribute__((packed)); } d;
|
|
char d1[__alignof__(d) == 2 ?: -1] = {0};
|
|
char d2[__alignof__(d.member) == 2 ?: -1] = {0};
|
|
|
|
struct E { int member __attribute__((aligned(2))); } __attribute__((packed));
|
|
struct E e;
|
|
char e1[__alignof__(e) == 2 ?: -1] = {0};
|
|
char e2[__alignof__(e.member) == 2 ?: -1] = {0};
|
|
|
|
typedef struct { char c[16]; } S;
|
|
typedef S overaligned_struct __attribute__((aligned(16)));
|
|
typedef overaligned_struct array_with_overaligned_struct[11];
|
|
typedef char array_with_align_attr[11] __attribute__((aligned(16)));
|
|
|
|
char f0[__alignof__(array_with_overaligned_struct) == 16 ? 1 : -1] = { 0 };
|
|
char f1[__alignof__(array_with_align_attr) == 16 ? 1 : -1] = { 0 };
|
|
array_with_overaligned_struct F2;
|
|
char f2[__alignof__(F2) == 16 ? 1 : -1] = { 0 };
|
|
array_with_align_attr F3;
|
|
char f3[__alignof__(F3) == 16 ? 1 : -1] = { 0 };
|