Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
6855492ab6d55a6dd70691efa166aa0b2ee0f56e
/
.
/
test
/
CodeGen
/
enum.c
blob: c8641926ee27fb231ad93f57ebbdda128e85d003 [
file
] [
log
] [
blame
]
// RUN: clang %s -emit-llvm-bc -o - | opt -std-compile-opts | llvm-dis | grep 'ret i32 6'
static
enum
{
foo
,
bar
=
1U
}
z
;
int
main
(
void
)
{
int
r
=
0
;
if
(
bar
-
2
<
0
)
r
+=
4
;
if
(
foo
-
1
<
0
)
r
+=
2
;
if
(
z
-
1
<
0
)
r
++;
return
r
;
}