blob: 7c44056e4979e59e6ddccf4c93078bce9a589603 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// 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);
}
|