Lines Matching defs:GoodIter

334 class GoodIter {
336 GoodIter() { }
337 GoodIter(const GoodIter &) { }
338 GoodIter(int fst, int snd) { }
339 GoodIter &operator =(const GoodIter &that) { return *this; }
340 GoodIter &operator =(const Iter0 &that) { return *this; }
341 GoodIter &operator +=(int x) { return *this; }
342 explicit GoodIter(void *) { }
343 GoodIter operator ++() { return *this; }
344 GoodIter operator --() { return *this; }
346 bool operator <(GoodIter a) { return true; }
347 bool operator <=(GoodIter a) { return true; }
348 bool operator >=(GoodIter a) { return false; }
352 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter1' to 'GoodIter' for 1st argument}}
353 int operator -(GoodIter a, GoodIter b) { return 0; }
355 GoodIter operator -(GoodIter a) { return a; }
356 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter1' to 'GoodIter' for 1st argument}}
357 GoodIter operator -(GoodIter a, int v) { return GoodIter(); }
358 GoodIter operator +(GoodIter a, int v) { return GoodIter(); }
360 GoodIter operator -(int v, GoodIter a) { return GoodIter(); }
361 GoodIter operator +(int v, GoodIter a) { return GoodIter(); }
364 GoodIter begin, end;
367 for (GoodIter I = begin; I < end; ++I)
371 for (GoodIter &I = begin; I < end; ++I)
374 for (GoodIter I = begin; I >= end; --I)
378 for (GoodIter I(begin); I < end; ++I)
382 for (GoodIter I(nullptr); I < end; ++I)
386 for (GoodIter I(0); I < end; ++I)
390 for (GoodIter I(1,2); I < end; ++I)
393 for (begin = GoodIter(0); begin < end; ++begin)
396 for (begin = GoodIter(1,2); begin < end; ++begin)
407 for (GoodIter I = begin; I - I; ++I)
411 for (GoodIter I = begin; begin < end; ++I)
415 for (GoodIter I = begin; !I; ++I)
420 for (GoodIter I = begin; I >= end; I = I + 1)
423 for (GoodIter I = begin; I >= end; I = I - 1)
427 for (GoodIter I = begin; I >= end; I = -I)
432 for (GoodIter I = begin; I >= end; I = 2 + I)
436 for (GoodIter I = begin; I >= end; I = 2 - I)
524 GoodIter begin, end;
525 TC<GoodIter, 100> t1;
526 TC<GoodIter, -100> t2;
528 t2.dotest_lt(begin, end); // expected-note {{in instantiation of member function 'TC<GoodIter, -100>::dotest_lt' requested here}}
529 dotest_gt(begin, end); // expected-note {{in instantiation of function template specialization 'dotest_gt<GoodIter, 0>' requested here}}