[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Sema / enum-increment.c
blobf0edae3ea48c63b7895326c725955a72cc6ac1a7
1 // RUN: %clang_cc1 -fsyntax-only %s -verify
2 // expected-no-diagnostics
3 enum A { A1, A2, A3 };
4 typedef enum A A;
5 void test(void) {
6 A a;
7 a++;
8 a--;
9 ++a;
10 --a;
11 a = a + 1;
12 a = a - 1;