1 // RUN: %libomptarget-compilexx-run-and-check-generic
5 extern "C" int printf(const char *, ...);
7 // std::equal is lowered to libc function memcmp.
10 #pragma omp target map(from : r)
15 bool eq1
= std::equal(x
, x
+ 2, y
);
16 bool eq2
= std::equal(x
, x
+ 2, z
);
19 printf("memcmp: %s\n", r
? "PASS" : "FAIL");
22 int main(int argc
, char *argv
[]) {
28 // CHECK: memcmp: PASS