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; }
429 // expected-note@+2 {{candidate function not viable: no known conversion from 'Iter0' to 'GoodIter' for 2nd argument}}
430 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter1' to 'GoodIter' for 1st argument}}
431 int operator-(GoodIter a, GoodIter b) { return 0; }
433 GoodIter operator-(GoodIter a) { return a; }
435 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter1' to 'GoodIter' for 1st argument}}
436 GoodIter operator-(GoodIter a, int v) { return GoodIter(); }
437 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter0' to 'GoodIter' for 1st argument}}
438 GoodIter operator+(GoodIter a, int v) { return GoodIter(); }
439 // expected-note@+2 {{candidate function not viable: no known conversion from 'GoodIter' to 'int' for 1st argument}}
441 GoodIter operator-(int v, GoodIter a) { return GoodIter(); }
443 GoodIter operator+(int v, GoodIter a) { return GoodIter(); }
446 GoodIter begin, end;
450 for (GoodIter I = begin; I < end; ++I)
455 for (GoodIter &I = begin; I < end; ++I)
459 for (GoodIter I = begin; I >= end; --I)
464 for (GoodIter I(begin); I < end; ++I)
469 for (GoodIter I(nullptr); I < end; ++I)
474 for (GoodIter I(0); I < end; ++I)
479 for (GoodIter I(1, 2); I < end; ++I)
483 for (begin = GoodIter(0); begin < end; ++begin)
485 // expected-error@+4 {{invalid operands to binary expression ('GoodIter' and 'Iter0')}}
503 for (GoodIter I = begin; I - I; ++I)
508 for (GoodIter I = begin; begin < end; ++I)
513 for (GoodIter I = begin; !I; ++I)
519 for (GoodIter I = begin; I >= end; I = I + 1)
523 for (GoodIter I = begin; I >= end; I = I - 1)
528 for (GoodIter I = begin; I >= end; I = -I)
534 for (GoodIter I = begin; I >= end; I = 2 + I)
539 for (GoodIter I = begin; I >= end; I = 2 - I)
640 GoodIter begin, end;
641 TC<GoodIter, 100> t1;
642 TC<GoodIter, -100> t2;
644 t2.dotest_lt(begin, end); // expected-note {{in instantiation of member function 'TC<GoodIter, -100>::dotest_lt' requested here}}
645 dotest_gt(begin, end); // expected-note {{in instantiation of function template specialization 'dotest_gt<GoodIter, 0>' requested here}}