Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
1261938ec42b0a1b82bec5fe901b7fc02a23d9a1
/
.
/
test
/
SemaCXX
/
enum.cpp
blob: 7c44056e4979e59e6ddccf4c93078bce9a589603 [
file
] [
log
] [
blame
]
// RUN: clang -fsyntax-only -verify %s
enum
E
{
Val1
,
Val2
};
int
&
enumerator_type
(
int
);
float
&
enumerator_type
(
E
);
void
f
()
{
E e
=
Val1
;
float
&
fr
=
enumerator_type
(
Val2
);
}