Lines Matching refs:GoodIter
458 class GoodIter { class
460 GoodIter() { } in GoodIter() function in GoodIter
461 GoodIter(const GoodIter &) { } in GoodIter() argument
462 GoodIter(int fst, int snd) { } in GoodIter() function in GoodIter
463 GoodIter &operator =(const GoodIter &that) { return *this; } in operator =()
464 GoodIter &operator =(const Iter0 &that) { return *this; } in operator =()
465 GoodIter &operator +=(int x) { return *this; } in operator +=()
466 explicit GoodIter(void *) { } in GoodIter() function in GoodIter
467 GoodIter operator ++() { return *this; } in operator ++()
468 GoodIter operator --() { return *this; } in operator --()
470 bool operator <(GoodIter a) { return true; } in operator <()
471 bool operator <=(GoodIter a) { return true; } in operator <=()
472 bool operator >=(GoodIter a) { return false; } in operator >=()
477 int operator -(GoodIter a, GoodIter b) { return 0; } in operator -()
479 GoodIter operator -(GoodIter a) { return a; } in operator -()
481 GoodIter operator -(GoodIter a, int v) { return GoodIter(); } in operator -()
482 GoodIter operator +(GoodIter a, int v) { return GoodIter(); } in operator +()
484 GoodIter operator -(int v, GoodIter a) { return GoodIter(); } in operator -()
485 GoodIter operator +(int v, GoodIter a) { return GoodIter(); } in operator +()
488 GoodIter begin, end; in test_with_random_access_iterator()
493 …for (GoodIter I = begin; I < end; ++I) // expected-warning 2 {{Type 'GoodIter' is not trivially co… in test_with_random_access_iterator()
499 for (GoodIter &I = begin; I < end; ++I) in test_with_random_access_iterator()
504 …for (GoodIter I = begin; I >= end; --I) // expected-warning 2 {{Type 'GoodIter' is not trivially c… in test_with_random_access_iterator()
510 …for (GoodIter I(begin); I < end; ++I) // expected-warning 2 {{Type 'GoodIter' is not trivially cop… in test_with_random_access_iterator()
516 …for (GoodIter I(nullptr); I < end; ++I) // expected-warning {{Type 'GoodIter' is not trivially cop… in test_with_random_access_iterator()
522 …for (GoodIter I(0); I < end; ++I) // expected-warning {{Type 'GoodIter' is not trivially copyable … in test_with_random_access_iterator()
528 …for (GoodIter I(1,2); I < end; ++I) // expected-warning {{Type 'GoodIter' is not trivially copyabl… in test_with_random_access_iterator()
533 …for (begin = GoodIter(0); begin < end; ++begin) // expected-warning 2 {{Type 'GoodIter' is not tri… in test_with_random_access_iterator()
538 …for (begin = GoodIter(1,2); begin < end; ++begin) // expected-warning 2 {{Type 'GoodIter' is not t… in test_with_random_access_iterator()
555 for (GoodIter I = begin; I - I; ++I) in test_with_random_access_iterator()
561 for (GoodIter I = begin; begin < end; ++I) in test_with_random_access_iterator()
567 for (GoodIter I = begin; !I; ++I) in test_with_random_access_iterator()
574 for (GoodIter I = begin; I >= end; I = I + 1) in test_with_random_access_iterator()
579 …for (GoodIter I = begin; I >= end; I = I - 1) // expected-warning 2 {{Type 'GoodIter' is not trivi… in test_with_random_access_iterator()
585 for (GoodIter I = begin; I >= end; I = -I) in test_with_random_access_iterator()
592 for (GoodIter I = begin; I >= end; I = 2 + I) in test_with_random_access_iterator()
598 for (GoodIter I = begin; I >= end; I = 2 - I) in test_with_random_access_iterator()
706 GoodIter begin, end; in test_with_template()
707 TC<GoodIter, 100> t1; in test_with_template()
708 TC<GoodIter, -100> t2; in test_with_template()