Lines Matching refs:GoodIter
440 class GoodIter {
442 GoodIter() { }
443 GoodIter(const GoodIter &) { }
444 GoodIter(int fst, int snd) { }
445 GoodIter &operator =(const GoodIter &that) { return *this; }
446 GoodIter &operator =(const Iter0 &that) { return *this; }
447 GoodIter &operator +=(int x) { return *this; }
448 explicit GoodIter(void *) { }
449 GoodIter operator ++() { return *this; }
450 GoodIter operator --() { return *this; }
452 bool operator <(GoodIter a) { return true; }
453 bool operator <=(GoodIter a) { return true; }
454 bool operator >=(GoodIter a) { return false; }
458 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter1' to 'GoodIter' for 1st argument}}
459 int operator -(GoodIter a, GoodIter b) { return 0; }
461 GoodIter operator -(GoodIter a) { return a; }
462 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter1' to 'GoodIter' for 1st argument}}
463 GoodIter operator -(GoodIter a, int v) { return GoodIter(); }
464 GoodIter operator +(GoodIter a, int v) { return GoodIter(); }
466 GoodIter operator -(int v, GoodIter a) { return GoodIter(); }
467 GoodIter operator +(int v, GoodIter a) { return GoodIter(); }
470 GoodIter begin, end;
475 for (GoodIter I = begin; I < end; ++I)
481 for (GoodIter &I = begin; I < end; ++I)
486 for (GoodIter I = begin; I >= end; --I)
492 for (GoodIter I(begin); I < end; ++I)
498 for (GoodIter I(nullptr); I < end; ++I)
504 for (GoodIter I(0); I < end; ++I)
510 for (GoodIter I(1,2); I < end; ++I)
515 for (begin = GoodIter(0); begin < end; ++begin)
520 for (begin = GoodIter(1,2); begin < end; ++begin)
537 for (GoodIter I = begin; I - I; ++I)
543 for (GoodIter I = begin; begin < end; ++I)
549 for (GoodIter I = begin; !I; ++I)
556 for (GoodIter I = begin; I >= end; I = I + 1)
561 for (GoodIter I = begin; I >= end; I = I - 1)
567 for (GoodIter I = begin; I >= end; I = -I)
574 for (GoodIter I = begin; I >= end; I = 2 + I)
580 for (GoodIter I = begin; I >= end; I = 2 - I)
688 GoodIter begin, end;
689 TC<GoodIter, 100> t1;
690 TC<GoodIter, -100> t2;
692 t2.dotest_lt(begin, end); // expected-note {{in instantiation of member function 'TC<GoodIter, -100>::dotest_lt' requested here}}
693 dotest_gt(begin, end); // expected-note {{in instantiation of function template specialization 'dotest_gt<GoodIter, 0>' requested here}}