| // RUN: %clang_cc1 -verify -fopenmp --std=c++20 -ast-print %s -Wsign-conversion | FileCheck %s |
| // RUN: %clang_cc1 -fopenmp -x c++ -std=c++20 -emit-pch -o %t %s |
| // RUN: %clang_cc1 -fopenmp -std=c++20 -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck %s |
| // RUN: %clang_cc1 -verify -fopenmp-simd --std=c++20 -ast-print %s -Wsign-conversion | FileCheck %s |
| // RUN: %clang_cc1 -fopenmp-simd -x c++ -std=c++20 -emit-pch -o %t %s |
| // RUN: %clang_cc1 -fopenmp-simd -std=c++20 -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck %s |
| // expected-no-diagnostics |
| template <typename T> class iterator { |
| bool operator==(const iterator<T> &, const iterator<T> &); |
| unsigned long operator-(const iterator<T> &, const iterator<T> &); |
| iterator<T> operator+(const iterator<T> &, unsigned long); |
| // CHECK-NEXT: vector vec; |
| // CHECK-NEXT: #pragma omp for |
| // CHECK-NEXT: for (int i : vec) |