| 1 | // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only |
|---|---|
| 2 | // expected-no-diagnostics |
| 3 | |
| 4 | typedef __attribute__((ext_vector_type(2))) char char2; |
| 5 | typedef __attribute__((ext_vector_type(4))) unsigned int uint4; |
| 6 | typedef __attribute__((ext_vector_type(8))) long long8; |
| 7 | |
| 8 | void vectorIncrementDecrementOps() |
| 9 | { |
| 10 | char2 A = (char2)(1); |
| 11 | uint4 B = (uint4)(1); |
| 12 | long8 C = (long8)(1); |
| 13 | |
| 14 | A++; |
| 15 | --A; |
| 16 | B--; |
| 17 | ++B; |
| 18 | C++; |
| 19 | } |
| 20 |