Sign in
cobalt
/
cobalt
/
11295760be490ee3fe93b612c49343055ab2c485
/
.
/
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
;
}