repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git]
/
clang
/
test
/
Sema
/
enum-increment.c
blob
f0edae3ea48c63b7895326c725955a72cc6ac1a7
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
;
13
}