1 // RUN
: %clang_cc1 %s -verify -pedantic -fsyntax-only
3 typedef __attribute__
((ext_vector_type(2))) char char2
;
4 typedef __attribute__
((ext_vector_type(4))) unsigned int uint4
;
5 typedef __attribute__
((ext_vector_type(8))) long long8
;
6 typedef __attribute__
((ext_vector_type(4))) float float4
;
8 void vectorIncrementDecrementOps
(void)
21 void invalidIncrementDecrementOps
(void) {
22 ((float4)(1.0f
))++; // expected-error{{cannot increment value of type 'float4'}}
24 ++i
; // expected-error{{cannot increment value of type '__private float4'}}
25 i--
; // expected-error{{cannot decrement value of type '__private float4'}}