Home | History | Annotate | Download | only in OpenMP

Lines Matching refs:GoodIter

398 // expected-note@+2 {{candidate function not viable: no known conversion from 'GoodIter' to 'Iter0' for 1st argument}}
410 class GoodIter {
412 GoodIter() {}
413 GoodIter(const GoodIter &) {}
414 GoodIter(int fst, int snd) {}
415 GoodIter &operator=(const GoodIter &that) { return *this; }
416 GoodIter &operator=(const Iter0 &that) { return *this; }
417 GoodIter &operator+=(int x) { return *this; }
418 GoodIter &operator-=(int x) { return *this; }
419 explicit GoodIter(void *) {}
420 GoodIter operator++() { return *this; }
421 GoodIter operator--() { return *this; }
423 bool operator<(GoodIter a) { return true; }
424 bool operator<=(GoodIter a) { return true; }
425 bool operator>=(GoodIter a) { return false; }
442 // expected-note@+2 {{candidate function not viable: no known conversion from 'const Iter0' to 'GoodIter' for 2nd argument}}
443 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter1' to 'GoodIter' for 1st argument}}
444 int operator-(GoodIter a, GoodIter b) { return 0; }
446 GoodIter operator-(GoodIter a) { return a; }
448 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter1' to 'GoodIter' for 1st argument}}
449 GoodIter operator-(GoodIter a, int v) { return GoodIter(); }
450 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter0' to 'GoodIter' for 1st argument}}
451 GoodIter operator+(GoodIter a, int v) { return GoodIter(); }
452 // expected-note@+2 {{candidate function not viable: no known conversion from 'GoodIter' to 'int' for 1st argument}}
454 GoodIter operator-(int v, GoodIter a) { return GoodIter(); }
456 GoodIter operator+(int v, GoodIter a) { return GoodIter(); }
459 GoodIter begin, end;
463 for (GoodIter I = begin; I < end; ++I)
468 for (GoodIter &I = begin; I < end; ++I)
472 for (GoodIter I = begin; I >= end; --I)
477 for (GoodIter I(begin); I < end; ++I)
482 GoodIter I(nullptr); I < end; ++I)
487 for (GoodIter I(0); I < end; ++I)
492 for (GoodIter I(1, 2); I < end; ++I)
496 for (begin = GoodIter(0); begin < end; ++begin)
498 // expected-error@+4 {{invalid operands to binary expression ('GoodIter' and 'const Iter0')}}
516 for (GoodIter I = begin; I - I; ++I)
521 for (GoodIter I = begin; begin < end; ++I)
526 for (GoodIter I = begin; !I; ++I)
532 for (GoodIter I = begin; I >= end; I = I + 1)
536 for (GoodIter I = begin; I >= end; I = I - 1)
541 for (GoodIter I = begin; I >= end; I = -I)
547 for (GoodIter I = begin; I >= end; I = 2 + I)
552 for (GoodIter I = begin; I >= end; I = 2 - I)
657 GoodIter begin, end;
658 TC<GoodIter, 100> t1;
659 TC<GoodIter, -100> t2;
661 t2.dotest_lt(begin, end); // expected-note {{in instantiation of member function 'TC<GoodIter, -100>::dotest_lt' requested here}}
662 dotest_gt(begin, end); // expected-note {{in instantiation of function template specialization 'dotest_gt<GoodIter, 0>' requested here}}