1 // RUN: %clang_cc1 -fms-extensions -fdelayed-template-parsing -fsyntax-only -verify -std=c++11 %s
13 void foo4() { } // expected-note {{previous definition is here}} expected-note {{previous definition is here}}
14 void foo4() { } // expected-error {{class member cannot be redeclared}} expected-error {{redefinition of 'foo4'}} expected-note {{previous definition is here}}
23 void B
<T
>::foo4() {// expected-error {{redefinition of 'foo4'}}
37 template void A
<int>::foo2();
45 template <class T
> void foo5() {} //expected-note {{previous definition is here}}
46 template <class T
> void foo5() {} // expected-error {{redefinition of 'foo5'}}
50 namespace Inner_Outer_same_template_param_name
{
69 template <typename RunType
>
73 struct BindState
<void(void*)> {
79 typedef void RunType();
81 template <typename RunType
>
82 Callback(BindState
<RunType
> bind_state
) {
83 BindState
<RunType
>::Run();
89 return Callback(BindState
<void(void*)>());
94 namespace rdar11700604
{
95 template<typename T
> void foo() = delete;
100 template<typename T
> void foo() = delete;