Lines Matching refs:GoodIter
380 class GoodIter { class
382 GoodIter() {} in GoodIter() function in GoodIter
383 GoodIter(const GoodIter &) {} in GoodIter() function in GoodIter
384 GoodIter(int fst, int snd) {} in GoodIter() function in GoodIter
385 GoodIter &operator=(const GoodIter &that) { return *this; } in operator =()
386 GoodIter &operator=(const Iter0 &that) { return *this; } in operator =()
387 GoodIter &operator+=(int x) { return *this; } in operator +=()
388 explicit GoodIter(void *) {} in GoodIter() function in GoodIter
389 GoodIter operator++() { return *this; } in operator ++()
390 GoodIter operator--() { return *this; } in operator --()
392 bool operator<(GoodIter a) { return true; } in operator <()
393 bool operator<=(GoodIter a) { return true; } in operator <=()
394 bool operator>=(GoodIter a) { return false; } in operator >=()
400 int operator-(GoodIter a, GoodIter b) { return 0; } in operator -()
402 GoodIter operator-(GoodIter a) { return a; } in operator -()
405 GoodIter operator-(GoodIter a, int v) { return GoodIter(); } in operator -()
407 GoodIter operator+(GoodIter a, int v) { return GoodIter(); } in operator +()
410 GoodIter operator-(int v, GoodIter a) { return GoodIter(); } in operator -()
412 GoodIter operator+(int v, GoodIter a) { return GoodIter(); } in operator +()
415 GoodIter begin, end; in test_with_random_access_iterator()
419 …for (GoodIter I = begin; I < end; ++I) // expected-warning 2 {{Type 'GoodIter' is not trivially co… in test_with_random_access_iterator()
424 for (GoodIter &I = begin; I < end; ++I) in test_with_random_access_iterator()
428 …for (GoodIter I = begin; I >= end; --I) // expected-warning 2 {{Type 'GoodIter' is not trivially c… in test_with_random_access_iterator()
433 …for (GoodIter I(begin); I < end; ++I) // expected-warning 2 {{Type 'GoodIter' is not trivially cop… in test_with_random_access_iterator()
438 …for (GoodIter I(nullptr); I < end; ++I) // expected-warning {{Type 'GoodIter' is not trivially cop… in test_with_random_access_iterator()
443 …for (GoodIter I(0); I < end; ++I) // expected-warning {{Type 'GoodIter' is not trivially copyable … in test_with_random_access_iterator()
448 …for (GoodIter I(1, 2); I < end; ++I) // expected-warning {{Type 'GoodIter' is not trivially copyab… in test_with_random_access_iterator()
452 …for (begin = GoodIter(0); begin < end; ++begin) // expected-warning 2 {{Type 'GoodIter' is not tri… in test_with_random_access_iterator()
472 for (GoodIter I = begin; I - I; ++I) in test_with_random_access_iterator()
477 for (GoodIter I = begin; begin < end; ++I) in test_with_random_access_iterator()
482 for (GoodIter I = begin; !I; ++I) in test_with_random_access_iterator()
488 for (GoodIter I = begin; I >= end; I = I + 1) in test_with_random_access_iterator()
492 …for (GoodIter I = begin; I >= end; I = I - 1) // expected-warning 2 {{Type 'GoodIter' is not trivi… in test_with_random_access_iterator()
497 for (GoodIter I = begin; I >= end; I = -I) in test_with_random_access_iterator()
503 for (GoodIter I = begin; I >= end; I = 2 + I) in test_with_random_access_iterator()
508 for (GoodIter I = begin; I >= end; I = 2 - I) in test_with_random_access_iterator()
608 GoodIter begin, end; in test_with_template()
609 TC<GoodIter, 100> t1; in test_with_template()
610 TC<GoodIter, -100> t2; in test_with_template()