forked from OSchip/llvm-project
parent
1adc8c3391
commit
694acb3375
|
@ -51,6 +51,6 @@ typedef short short_sizeof_pointer __attribute__((vector_size(sizeof(void*))));
|
|||
void f5() {
|
||||
short_sizeof_pointer v;
|
||||
void *ptr;
|
||||
v = ptr; // expected-error {{assigning to 'short_sizeof_pointer' (vector of 4 'short' values) from incompatible type 'void *'}}
|
||||
v = ptr; // expected-error-re {{assigning to 'short_sizeof_pointer' (vector of {{[0-9]+}} 'short' values) from incompatible type 'void *'}}
|
||||
ptr = v; // expected-error {{assigning to 'void *' from incompatible type 'short_sizeof_pointer'}}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue