1*8858159fSRichard Smith // Reduced from a crash encountered with a modularized libc++, where 2*8858159fSRichard Smith // we would try to compute the linkage of a declaration before we 3*8858159fSRichard Smith // finish loading the relevant pieces of it. 4*8858159fSRichard Smith inline namespace D { 5*8858159fSRichard Smith template<class> 6*8858159fSRichard Smith struct U { 7*8858159fSRichard Smith friend bool f(const U &); 8*8858159fSRichard Smith }; 9*8858159fSRichard Smith 10*8858159fSRichard Smith template class U<int>; 11*8858159fSRichard Smith } 12