teak-llvm/openmp/runtime/test/tasking/omp_task_priority.c
Jonathan Peyton aa5cdafa40 Remove REQUIRES OMP spec version within lit tests
This is a follow up patch to D64534 (r365963) which removed all OMP
spec versioning within the OpenMP runtime codebase.  This patch removes
REQUIRES: openmp-x.y lines from lit tests.

llvm-svn: 366341
2019-07-17 15:41:00 +00:00

23 lines
530 B
C

// 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;
}