[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / openmp / libomptarget / test / libc / puts.c
blob0e363f55296184b48373ffa65e16cdcd7ee77c19
1 // RUN: %libomptarget-compile-run-and-check-generic
3 // REQUIRES: libc
5 #include <stdio.h>
7 #pragma omp declare target to(stdout)
9 int main() {
10 // CHECK: PASS
11 #pragma omp target
12 { fputs("PASS\n", stdout); }
14 // CHECK: PASS
15 #pragma omp target nowait
16 { fputs("PASS\n", stdout); }
18 // CHECK: PASS
19 #pragma omp target nowait
20 { fputs("PASS\n", stdout); }
22 #pragma omp taskwait
24 // CHECK: PASS
25 // CHECK: PASS
26 // CHECK: PASS
27 // CHECK: PASS
28 // CHECK: PASS
29 // CHECK: PASS
30 // CHECK: PASS
31 // CHECK: PASS
32 #pragma omp target teams num_teams(4)
33 #pragma omp parallel num_threads(2)
34 { puts("PASS\n"); }