]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaCXX/PR5086-ambig-resolution-enum.cpp
Update clang to r86140.
[FreeBSD/FreeBSD.git] / test / SemaCXX / PR5086-ambig-resolution-enum.cpp
1 // RUN: clang-cc -fsyntax-only -verify %s -std=c++0x
2
3 class C {
4 public:
5         enum E { e1=0 };
6         const char * fun1(int , enum E) const;
7         int fun1(unsigned, const char *) const;
8 };
9
10 void foo(const C& rc) {
11         enum {BUFLEN = 128 };
12         const char *p = rc.fun1(BUFLEN - 2, C::e1);
13 }