1*0a6a1f1dSLionel Sambuc @import cxx_templates_common; 2*0a6a1f1dSLionel Sambuc InstantiateWithAnonymousDeclsD(WithAnonymousDecls<char> x)3*0a6a1f1dSLionel Sambucinline int InstantiateWithAnonymousDeclsD(WithAnonymousDecls<char> x) { return (x.k ? x.a : x.b) + (x.k ? x.s.c : x.s.d) + x.e; } 4*0a6a1f1dSLionel Sambuc 5*0a6a1f1dSLionel Sambuc namespace TestInjectedClassName { 6*0a6a1f1dSLionel Sambuc template<typename T> struct X { X(); }; 7*0a6a1f1dSLionel Sambuc typedef X<int> D; UseD()8*0a6a1f1dSLionel Sambuc inline D UseD() { return D(); } 9*0a6a1f1dSLionel Sambuc } 10