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