1 // RUN: %clang_cc1 %s -triple aarch64-none-linux-gnu -target-feature +sve,+bf16 -fsyntax-only -verify
4 int size_s8
[sizeof(__SVInt8_t
) == 0 ? 1 : -1]; // expected-error {{invalid application of 'sizeof' to sizeless type '__SVInt8_t'}}
5 int align_s8
[__alignof__(__SVInt8_t
) == 16 ? 1 : -1]; // expected-error {{invalid application of '__alignof' to sizeless type '__SVInt8_t'}}
7 int size_s16
[sizeof(__SVInt16_t
) == 0 ? 1 : -1]; // expected-error {{invalid application of 'sizeof' to sizeless type '__SVInt16_t'}}
8 int align_s16
[__alignof__(__SVInt16_t
) == 16 ? 1 : -1]; // expected-error {{invalid application of '__alignof' to sizeless type '__SVInt16_t'}}
10 int size_s32
[sizeof(__SVInt32_t
) == 0 ? 1 : -1]; // expected-error {{invalid application of 'sizeof' to sizeless type '__SVInt32_t'}}
11 int align_s32
[__alignof__(__SVInt32_t
) == 16 ? 1 : -1]; // expected-error {{invalid application of '__alignof' to sizeless type '__SVInt32_t'}}
13 int size_s64
[sizeof(__SVInt64_t
) == 0 ? 1 : -1]; // expected-error {{invalid application of 'sizeof' to sizeless type '__SVInt64_t'}}
14 int align_s64
[__alignof__(__SVInt64_t
) == 16 ? 1 : -1]; // expected-error {{invalid application of '__alignof' to sizeless type '__SVInt64_t'}}
16 int size_u8
[sizeof(__SVUint8_t
) == 0 ? 1 : -1]; // expected-error {{invalid application of 'sizeof' to sizeless type '__SVUint8_t'}}
17 int align_u8
[__alignof__(__SVUint8_t
) == 16 ? 1 : -1]; // expected-error {{invalid application of '__alignof' to sizeless type '__SVUint8_t'}}
19 int size_u16
[sizeof(__SVUint16_t
) == 0 ? 1 : -1]; // expected-error {{invalid application of 'sizeof' to sizeless type '__SVUint16_t'}}
20 int align_u16
[__alignof__(__SVUint16_t
) == 16 ? 1 : -1]; // expected-error {{invalid application of '__alignof' to sizeless type '__SVUint16_t'}}
22 int size_u32
[sizeof(__SVUint32_t
) == 0 ? 1 : -1]; // expected-error {{invalid application of 'sizeof' to sizeless type '__SVUint32_t'}}
23 int align_u32
[__alignof__(__SVUint32_t
) == 16 ? 1 : -1]; // expected-error {{invalid application of '__alignof' to sizeless type '__SVUint32_t'}}
25 int size_u64
[sizeof(__SVUint64_t
) == 0 ? 1 : -1]; // expected-error {{invalid application of 'sizeof' to sizeless type '__SVUint64_t'}}
26 int align_u64
[__alignof__(__SVUint64_t
) == 16 ? 1 : -1]; // expected-error {{invalid application of '__alignof' to sizeless type '__SVUint64_t'}}
28 int size_f16
[sizeof(__SVFloat16_t
) == 0 ? 1 : -1]; // expected-error {{invalid application of 'sizeof' to sizeless type '__SVFloat16_t'}}
29 int align_f16
[__alignof__(__SVFloat16_t
) == 16 ? 1 : -1]; // expected-error {{invalid application of '__alignof' to sizeless type '__SVFloat16_t'}}
31 int size_f32
[sizeof(__SVFloat32_t
) == 0 ? 1 : -1]; // expected-error {{invalid application of 'sizeof' to sizeless type '__SVFloat32_t'}}
32 int align_f32
[__alignof__(__SVFloat32_t
) == 16 ? 1 : -1]; // expected-error {{invalid application of '__alignof' to sizeless type '__SVFloat32_t'}}
34 int size_f64
[sizeof(__SVFloat64_t
) == 0 ? 1 : -1]; // expected-error {{invalid application of 'sizeof' to sizeless type '__SVFloat64_t'}}
35 int align_f64
[__alignof__(__SVFloat64_t
) == 16 ? 1 : -1]; // expected-error {{invalid application of '__alignof' to sizeless type '__SVFloat64_t'}}
37 int size_bf16
[sizeof(__SVBfloat16_t
) == 0 ? 1 : -1]; // expected-error {{invalid application of 'sizeof' to sizeless type '__SVBfloat16_t'}}
38 int align_bf16
[__alignof__(__SVBfloat16_t
) == 16 ? 1 : -1]; // expected-error {{invalid application of '__alignof' to sizeless type '__SVBfloat16_t'}}
40 int size_mf8
[sizeof(__SVMfloat8_t
) == 0 ? 1 : -1]; // expected-error {{invalid application of 'sizeof' to sizeless type '__SVMfloat8_t'}}
41 int align_mf8
[__alignof__(__SVMfloat8_t
) == 16 ? 1 : -1]; // expected-error {{invalid application of '__alignof' to sizeless type '__SVMfloat8_t'}}
43 int size_b8
[sizeof(__SVBool_t
) == 0 ? 1 : -1]; // expected-error {{invalid application of 'sizeof' to sizeless type '__SVBool_t'}}
44 int align_b8
[__alignof__(__SVBool_t
) == 2 ? 1 : -1]; // expected-error {{invalid application of '__alignof' to sizeless type '__SVBool_t'}}