reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
// RUN: %libomp-compile && env OMP_MAX_TASK_PRIORITY=42 %libomp-run
// Test OMP 4.5 task priorities
// Currently only API function and envirable parsing implemented.
// Test environment sets envirable: OMP_MAX_TASK_PRIORITY=42 as tested below.
#include <stdio.h>
#include <omp.h>

int main (void) {
    int passed;

    passed = (omp_get_max_task_priority() == 42);
    printf("Got %d\n", omp_get_max_task_priority());

    if (passed) {
       printf("passed\n");
       return 0;
    }

    printf("failed\n");
    return 1;
}