diff options
Diffstat (limited to 'test/OpenMP/for_loop_messages.cpp')
| -rw-r--r-- | test/OpenMP/for_loop_messages.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/test/OpenMP/for_loop_messages.cpp b/test/OpenMP/for_loop_messages.cpp index f425defdf3e2b..1a1315507893d 100644 --- a/test/OpenMP/for_loop_messages.cpp +++ b/test/OpenMP/for_loop_messages.cpp @@ -423,12 +423,12 @@ public:    typedef int difference_type;    typedef std::random_access_iterator_tag iterator_category;  }; -// expected-note@+2 {{candidate function not viable: no known conversion from 'const Iter0' to 'GoodIter' for 2nd argument}} +// expected-note@+2 {{candidate function not viable: no known conversion from 'Iter0' to 'GoodIter' for 2nd argument}}  // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter1' to 'GoodIter' for 1st argument}}  int operator-(GoodIter a, GoodIter b) { return 0; }  // expected-note@+1 3 {{candidate function not viable: requires single argument 'a', but 2 arguments were provided}}  GoodIter operator-(GoodIter a) { return a; } -// expected-note@+2 {{candidate function not viable: no known conversion from 'const Iter0' to 'int' for 2nd argument}} +// expected-note@+2 {{candidate function not viable: no known conversion from 'Iter0' to 'int' for 2nd argument}}  // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter1' to 'GoodIter' for 1st argument}}  GoodIter operator-(GoodIter a, int v) { return GoodIter(); }  // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter0' to 'GoodIter' for 1st argument}} @@ -479,7 +479,7 @@ int test_with_random_access_iterator() {  #pragma omp for    for (begin = GoodIter(0); begin < end; ++begin)      ++begin; -// expected-error@+4 {{invalid operands to binary expression ('GoodIter' and 'const Iter0')}} +// expected-error@+4 {{invalid operands to binary expression ('GoodIter' and 'Iter0')}}  // expected-error@+3 {{could not calculate number of iterations calling 'operator-' with upper and lower loop bounds}}  #pragma omp parallel  #pragma omp for @@ -562,7 +562,7 @@ int test_with_random_access_iterator() {    for (Iter1 I = begin1; I >= end1; ++I)      ++I;  #pragma omp parallel -// expected-error@+5 {{invalid operands to binary expression ('Iter1' and 'Iter1')}} +// expected-error@+5 {{invalid operands to binary expression ('Iter1' and 'float')}}  // expected-error@+4 {{could not calculate number of iterations calling 'operator-' with upper and lower loop bounds}}  // Initializer is constructor with all default params.  // expected-warning@+2 {{initialization clause of OpenMP for loop is not in canonical form ('var = init' or 'T var = init')}}  | 
