summaryrefslogtreecommitdiffstats
path: root/test/Modules/Inputs/cxx-templates-d.h
blob: 1fb1a2282b96fbe7425d712b6a2e05669a0a2889 (plain)
1
2
3
4
5
6
7
8
9
@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(); }
}
OpenPOWER on IntegriCloud