2 // Origin: Jakub Jelinek <jakub@redhat.com>
7 friend class __iterator;
8 typedef __iterator const_iterator;
10 __iterator begin(); // { dg-message "candidates" }
12 static void iteratorTest(const foo &x)
14 foo::const_iterator i = x.begin(); // { dg-error "incomplete type" "incomplete type" }
15 // { dg-error "no matching" "no matching" { target *-*-* } 14 }