[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / Inputs / odr_hash-Friend / Good.h
blob4c38392eb6ed0e92b10329f28ebb5a757f09b08b
1 template <class T>
2 struct iterator {
3 void Compare(const iterator &x) { }
4 friend void Check(iterator) {}
5 };
7 template <class T = int> struct Box {
8 iterator<T> I;
10 void test() {
11 Check(I);
12 I.Compare(I);
16 // Force instantiation of Box<int>
17 Box<> B;