[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / SemaCXX / PR5086-ambig-resolution-enum.cpp
blobeeb73f6f56c921a8a4586eb97977ba9c06e99122
1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
2 // expected-no-diagnostics
4 class C {
5 public:
6 enum E { e1=0 };
7 const char * fun1(int , enum E) const;
8 int fun1(unsigned, const char *) const;
9 };
11 void foo(const C& rc) {
12 enum {BUFLEN = 128 };
13 const char *p = rc.fun1(BUFLEN - 2, C::e1);