llvm-project/clang/test/Modules/Inputs/cxx-templates-b-impl.h
Richard Smith 3d23c42029 If an instantiation of a template is required to be a complete type, check
whether the definition of the template is visible rather than checking whether
the instantiated definition happens to be in an imported module.

llvm-svn: 208150
2014-05-07 02:25:43 +00:00

13 lines
430 B
C++

struct DefinedInBImpl {
void f();
struct Inner {};
friend void FoundByADL(DefinedInBImpl);
};
@import cxx_templates_common;
template struct TemplateInstantiationVisibility<char[1]>;
extern template struct TemplateInstantiationVisibility<char[2]>;
template<> struct TemplateInstantiationVisibility<char[3]> {};
extern TemplateInstantiationVisibility<char[4]>::type
TemplateInstantiationVisibility_ImplicitInstantiation;