1 // RUN: %libomptarget-compile-run-and-check-generic
8 #pragma omp declare target to(stdout)
13 #pragma omp target map(from : r)
14 { r
= fwrite("PASS\n", 1, sizeof("PASS\n") - 1, stdout
); }
15 assert(r
== sizeof("PASS\n") - 1 && "Incorrect number of bytes written");
18 #pragma omp target map(from : r) nowait
19 { r
= fwrite("PASS\n", 1, 5, stdout
); }
21 assert(r
== sizeof("PASS\n") - 1 && "Incorrect number of bytes written");