Richard Smith | 762bb9d | 2011-10-13 22:29:44 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Fariborz Jahanian | 56fc0d1 | 2009-10-06 00:09:31 +0000 | [diff] [blame] | 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 | } |