Add test of enumerator types

llvm-svn: 60940
This commit is contained in:
Douglas Gregor 2008-12-12 07:27:10 +00:00
parent ccbe9200f9
commit b9d2380204
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,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);
}