xref: /minix3/external/bsd/llvm/dist/clang/test/Modules/Inputs/cxx-linkage-cache.h (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // Reduced from a crash encountered with a modularized libc++, where
2*f4a2713aSLionel Sambuc // we would try to compute the linkage of a declaration before we
3*f4a2713aSLionel Sambuc // finish loading the relevant pieces of it.
4*f4a2713aSLionel Sambuc inline namespace D {
5*f4a2713aSLionel Sambuc   template<class>
6*f4a2713aSLionel Sambuc   struct U {
7*f4a2713aSLionel Sambuc     friend bool f(const U &);
8*f4a2713aSLionel Sambuc   };
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc   template class U<int>;
11*f4a2713aSLionel Sambuc }
12