// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
typedef __attribute__;
typedef __attribute__ unsigned int uint4;
typedef __attribute__ long long8;
typedef __attribute__ float float4;
void vectorIncrementDecrementOps
{
char2 A = ;
uint4 B = ;
long8 C = ;
A++;
--A;
B--;
++B;
C++;
}
void invalidIncrementDecrementOps {
++; // expected-error{{cannot increment value of type 'float4'}}
float4 i;
++i; // expected-error{{cannot increment value of type '__private float4'}}
i--; // expected-error{{cannot decrement value of type '__private float4'}}
}
char char2