aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/Inputs/cxx-linkage-cache.h
blob: df829279761ae7d7c01c1c108841dfbd223673fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// Reduced from a crash encountered with a modularized libc++, where
// we would try to compute the linkage of a declaration before we
// finish loading the relevant pieces of it.
inline namespace D {
  template<class>
  struct U {
    friend bool f(const U &);
  };

  template class U<int>;
}