Sign in
cobalt
/
cobalt
/
308ed6b84664d59944cd65f4b4359c28a2443be6
/
.
/
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
;
}