1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c99 -triple aarch64 -target-feature +bf16 -target-feature +sve
13 typedef struct B3
{} B3
;
17 typedef struct B4
{} *B4
;
25 typedef __SVInt8_t B6
;
29 N t1
= 0 ? (X1
)0 : (Y1
)0; // expected-error {{incompatible type 'B1'}}
30 N t2
= 0 ? (X2
)0 : 0; // expected-error {{incompatible type 'X2'}}
31 N t3
= 0 ? 0 : (Y2
)0; // expected-error {{incompatible type 'Y2'}}
32 N t4
= 0 ? (X2
)0 : (Y2
)0; // expected-error {{incompatible type 'B2'}}
33 N t5
= 0 ? (X3
){} : (Y3
){}; // expected-error {{incompatible type 'B3'}}
34 N t6
= 0 ? (X4
)0 : (Y4
)0; // expected-error {{incompatible type 'B4'}}
38 N t7
= 0 ? x5
: y5
; // expected-error {{incompatible type 'B5'}}
43 N t8
= 0 ? x6
: y6
; // expected-error {{incompatible type 'B6'}}