Sign in
cobalt
/
cobalt
/
3cd5432aaed8f14f27f66ade1b51aa71df939492
/
.
/
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
;
}