xref: /minix3/external/bsd/llvm/dist/clang/test/Modules/Inputs/cxx-templates-d.h (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc @import cxx_templates_common;
2*0a6a1f1dSLionel Sambuc 
InstantiateWithAnonymousDeclsD(WithAnonymousDecls<char> x)3*0a6a1f1dSLionel Sambuc inline 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