// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
namespaceredecl_in_templ{template<typename T>voidredecl_in_templ(){externvoidfunc_1();// expected-note {{previous declaration is here}}
externintfunc_1();// expected-error {{functions that differ only in their return type cannot be overloaded}}
}voidg();constexprvoid(*p)()= g;template<bool>structX{};template<>structX<true>{typedefinttype;};template<typename T>voidf(){externvoidg();
X<&g == p>::type n;}}