1 // RUN: %libomp-compile && env OMP_MAX_TASK_PRIORITY=42 %libomp-run 2 // REQUIRES: openmp-4.5 3 // Test OMP 4.5 task priorities 4 // Currently only API function and envirable parsing implemented. 5 // Test environment sets envirable: OMP_MAX_TASK_PRIORITY=42 as tested below. 6 #include <stdio.h> 7 #include <omp.h> 8 9 int main (void) { 10 int passed; 11 12 passed = (omp_get_max_task_priority() == 42); 13 printf("Got %d\n", omp_get_max_task_priority()); 14 15 if (passed) { 16 printf("passed\n"); 17 return 0; 18 } 19 20 printf("failed\n"); 21 return 1; 22 } 23 24