Home | History | Annotate | Download | only in OpenMP

Lines Matching refs:GoodIter

399 // expected-note@+2 {{candidate function not viable: no known conversion from 'GoodIter' to 'Iter0' for 1st argument}}
411 class GoodIter {
413 GoodIter() {}
414 GoodIter(const GoodIter &) {}
415 GoodIter(int fst, int snd) {}
416 GoodIter &operator=(const GoodIter &that) { return *this; }
417 GoodIter &operator=(const Iter0 &that) { return *this; }
418 GoodIter &operator+=(int x) { return *this; }
419 GoodIter &operator-=(int x) { return *this; }
420 explicit GoodIter(void *) {}
421 GoodIter operator++() { return *this; }
422 GoodIter operator--() { return *this; }
424 bool operator<(GoodIter a) { return true; }
425 bool operator<=(GoodIter a) { return true; }
426 bool operator>=(GoodIter a) { return false; }
430 // expected-note@+2 {{candidate function not viable: no known conversion from 'const Iter0' to 'GoodIter' for 2nd argument}}
431 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter1' to 'GoodIter' for 1st argument}}
432 int operator-(GoodIter a, GoodIter b) { return 0; }
434 GoodIter operator-(GoodIter a) { return a; }
436 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter1' to 'GoodIter' for 1st argument}}
437 GoodIter operator-(GoodIter a, int v) { return GoodIter(); }
438 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter0' to 'GoodIter' for 1st argument}}
439 GoodIter operator+(GoodIter a, int v) { return GoodIter(); }
440 // expected-note@+2 {{candidate function not viable: no known conversion from 'GoodIter' to 'int' for 1st argument}}
442 GoodIter operator-(int v, GoodIter a) { return GoodIter(); }
444 GoodIter operator+(int v, GoodIter a) { return GoodIter(); }
447 GoodIter begin, end;
451 for (GoodIter I = begin; I < end; ++I)
456 for (GoodIter &I = begin; I < end; ++I)
460 for (GoodIter I = begin; I >= end; --I)
465 for (GoodIter I(begin); I < end; ++I)
470 for (GoodIter I(nullptr); I < end; ++I)
475 for (GoodIter I(0); I < end; ++I)
480 for (GoodIter I(1, 2); I < end; ++I)
484 for (begin = GoodIter(0); begin < end; ++begin)
486 // expected-error@+4 {{invalid operands to binary expression ('GoodIter' and 'const Iter0')}}
504 for (GoodIter I = begin; I - I; ++I)
509 for (GoodIter I = begin; begin < end; ++I)
514 for (GoodIter I = begin; !I; ++I)
520 for (GoodIter I = begin; I >= end; I = I + 1)
524 for (GoodIter I = begin; I >= end; I = I - 1)
529 for (GoodIter I = begin; I >= end; I = -I)
535 for (GoodIter I = begin; I >= end; I = 2 + I)
540 for (GoodIter I = begin; I >= end; I = 2 - I)
641 GoodIter begin, end;
642 TC<GoodIter, 100> t1;
643 TC<GoodIter, -100> t2;
645 t2.dotest_lt(begin, end); // expected-note {{in instantiation of member function 'TC<GoodIter, -100>::dotest_lt' requested here}}
646 dotest_gt(begin, end); // expected-note {{in instantiation of function template specialization 'dotest_gt<GoodIter, 0>' requested here}}