[RISCV][VLOPT] Add vector narrowing integer right shift instructions to isSupportedIn...
[llvm-project.git] / offload / test / api / omp_get_num_devices_with_empty_target.c
blob74ebb3e472ea3b6b250ca2f8f8da77d371483a59
1 // RUN: %libomptarget-compile-run-and-check-generic
3 #include <omp.h>
4 #include <stdio.h>
6 static int test_omp_get_num_devices_with_empty_target() {
7 /* checks that omp_get_num_devices() > 0 */
8 return omp_get_num_devices() > 0;
11 int main() {
12 int failed = 0;
14 if (!test_omp_get_num_devices_with_empty_target()) {
15 ++failed;
18 if (failed) {
19 printf("FAIL\n");
20 } else {
21 printf("PASS\n");
24 return failed;
27 // CHECK: PASS