blob: 4c38392eb6ed0e92b10329f28ebb5a757f09b08b [file] [log] [blame]
Richard Trieu0ac2eb72018-02-22 05:50:29 +00001template <class T>
2struct iterator {
3 void Compare(const iterator &x) { }
4 friend void Check(iterator) {}
5};
6
7template <class T = int> struct Box {
8 iterator<T> I;
9
10 void test() {
11 Check(I);
12 I.Compare(I);
13 }
14};
15
16// Force instantiation of Box<int>
17Box<> B;