Sign in
cobalt
/
cobalt
/
a7b1cfadc52288d71702934fd93743a24aea060a
/
.
/
src
/
third_party
/
llvm-project
/
clang
/
test
/
Sema
/
enum-increment.c
blob: baaa3489b9585f45fd7abb446a5b5810a3343ef3 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only %s -verify
// expected-no-diagnostics
enum
A
{
A1
,
A2
,
A3
};
typedef
enum
A A
;
void
test
()
{
A a
;
a
++;
a
--;
++
a
;
--
a
;
a
=
a
+
1
;
a
=
a
-
1
;
}