Sign in
fuchsia
/
third_party
/
llvm-project
/
c3fd2a50ba1395b6c2240f6a688c6a1aa975a1fe
/
.
/
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
;
}