1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
9 void Case(const char (&S
)[N
], const int & Value
) {
13 void test_stringswitch(int argc
, char *argv
[]) {
14 (void)StringSwitch
<int>();
18 template<class Class
,typename Type
,Type
Class::*>
19 struct non_const_member_base
23 template<class Class
,typename Type
,Type
Class::*PtrToMember
>
24 struct member
: non_const_member_base
<Class
,Type
,PtrToMember
>
32 typedef member
< test_class
,const int,&test_class::int_member
> ckey_m
;
39 namespace rdar8980215
{
40 enum E
{ E1
, E2
, E3
};
42 template<typename T
, E e
= E2
>
45 template<typename U
> X0(const X0
<U
, e
> &);
51 template<typename U
> X1(const X1
<U
> &x
) : X0
<T
>(x
) { }