blob: 1fb1a2282b96fbe7425d712b6a2e05669a0a2889 [file] [log] [blame]
Richard Smith01bdb7a2014-08-28 05:44:07 +00001@import cxx_templates_common;
2
3inline int InstantiateWithAnonymousDeclsD(WithAnonymousDecls<char> x) { return (x.k ? x.a : x.b) + (x.k ? x.s.c : x.s.d) + x.e; }
Richard Smith6377f8f2014-10-21 21:15:18 +00004
5namespace TestInjectedClassName {
6 template<typename T> struct X { X(); };
7 typedef X<int> D;
8 inline D UseD() { return D(); }
9}