Home | History | Annotate | Download | only in OpenMP

Lines Matching refs:GoodIter

400 // expected-note@+2 {{candidate function not viable: no known conversion from 'GoodIter' to 'Iter0' for 1st argument}}
412 class GoodIter {
414 GoodIter() {}
415 GoodIter(const GoodIter &) {}
416 GoodIter(int fst, int snd) {}
417 GoodIter &operator=(const GoodIter &that) { return *this; }
418 GoodIter &operator=(const Iter0 &that) { return *this; }
419 GoodIter &operator+=(int x) { return *this; }
420 GoodIter &operator-=(int x) { return *this; }
421 explicit GoodIter(void *) {}
422 GoodIter operator++() { return *this; }
423 GoodIter operator--() { return *this; }
425 bool operator<(GoodIter a) { return true; }
426 bool operator<=(GoodIter a) { return true; }
427 bool operator>=(GoodIter a) { return false; }
431 // expected-note@+2 {{candidate function not viable: no known conversion from 'const Iter0' to 'GoodIter' for 2nd argument}}
432 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter1' to 'GoodIter' for 1st argument}}
433 int operator-(GoodIter a, GoodIter b) { return 0; }
435 GoodIter operator-(GoodIter a) { return a; }
437 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter1' to 'GoodIter' for 1st argument}}
438 GoodIter operator-(GoodIter a, int v) { return GoodIter(); }
439 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter0' to 'GoodIter' for 1st argument}}
440 GoodIter operator+(GoodIter a, int v) { return GoodIter(); }
441 // expected-note@+2 {{candidate function not viable: no known conversion from 'GoodIter' to 'int' for 1st argument}}
443 GoodIter operator-(int v, GoodIter a) { return GoodIter(); }
445 GoodIter operator+(int v, GoodIter a) { return GoodIter(); }
448 GoodIter begin, end;
452 for (GoodIter I = begin; I < end; ++I)
457 for (GoodIter &I = begin; I < end; ++I)
461 for (GoodIter I = begin; I >= end; --I)
466 for (GoodIter I(begin); I < end; ++I)
471 for (GoodIter I(nullptr); I < end; ++I)
476 for (GoodIter I(0); I < end; ++I)
481 for (GoodIter I(1, 2); I < end; ++I)
485 for (begin = GoodIter(0); begin < end; ++begin)
487 // expected-error@+4 {{invalid operands to binary expression ('GoodIter' and 'const Iter0')}}
505 for (GoodIter I = begin; I - I; ++I)
510 for (GoodIter I = begin; begin < end; ++I)
515 for (GoodIter I = begin; !I; ++I)
521 for (GoodIter I = begin; I >= end; I = I + 1)
525 for (GoodIter I = begin; I >= end; I = I - 1)
530 for (GoodIter I = begin; I >= end; I = -I)
536 for (GoodIter I = begin; I >= end; I = 2 + I)
541 for (GoodIter I = begin; I >= end; I = 2 - I)
642 GoodIter begin, end;
643 TC<GoodIter, 100> t1;
644 TC<GoodIter, -100> t2;
646 t2.dotest_lt(begin, end); // expected-note {{in instantiation of member function 'TC<GoodIter, -100>::dotest_lt' requested here}}
647 dotest_gt(begin, end); // expected-note {{in instantiation of function template specialization 'dotest_gt<GoodIter, 0>' requested here}}