Richard Smith | 01bdb7a | 2014-08-28 05:44:07 +0000 | [diff] [blame] | 1 | @import cxx_templates_common; |
2 | |||||
3 | inline int InstantiateWithAnonymousDeclsD(WithAnonymousDecls<char> x) { return (x.k ? x.a : x.b) + (x.k ? x.s.c : x.s.d) + x.e; } | ||||
Richard Smith | 6377f8f | 2014-10-21 21:15:18 +0000 | [diff] [blame^] | 4 | |
5 | namespace TestInjectedClassName { | ||||
6 | template<typename T> struct X { X(); }; | ||||
7 | typedef X<int> D; | ||||
8 | inline D UseD() { return D(); } | ||||
9 | } |