[OMPT] Fix task-type test with GCC

This is similar to D43882. The runtime needs to be initialized before calling print_ids(0)

http://lab.llvm.org:8011/builders/openmp-gcc-x86_64-linux-debian/builds/60

Differential Revision: https://reviews.llvm.org/D43897

llvm-svn: 326428
This commit is contained in:
Joachim Protze 2018-03-01 11:26:15 +00:00
parent f3e93b23f7
commit f5aebc27ad
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,9 @@
#include <math.h>
int main() {
//initialize the OpenMP runtime
omp_get_num_threads();
// initial task
print_ids(0);