[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

git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@326428 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/runtime/test/ompt/tasks/task_types.c b/runtime/test/ompt/tasks/task_types.c
index 30c6ca7..6f2fdb3 100644
--- a/runtime/test/ompt/tasks/task_types.c
+++ b/runtime/test/ompt/tasks/task_types.c
@@ -5,6 +5,9 @@
 #include <math.h>
 
 int main() {
+  //initialize the OpenMP runtime
+  omp_get_num_threads();
+
   // initial task
   print_ids(0);