Richard Smith 6377f8f7fb [modules] When building an injected-class-name type, we may have to insert it
into multiple merged classes' TypeForDecl slots.

llvm-svn: 220331
2014-10-21 21:15:18 +00:00

10 lines
294 B
C++

@import cxx_templates_common;
inline int InstantiateWithAnonymousDeclsD(WithAnonymousDecls<char> x) { return (x.k ? x.a : x.b) + (x.k ? x.s.c : x.s.d) + x.e; }
namespace TestInjectedClassName {
template<typename T> struct X { X(); };
typedef X<int> D;
inline D UseD() { return D(); }
}