Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
      2 // expected-no-diagnostics
      3 
      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 };
     10 
     11 void foo(const C& rc) {
     12         enum {BUFLEN = 128 };
     13         const char *p = rc.fun1(BUFLEN - 2, C::e1);
     14 }
     15