aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/libgomp/testsuite/libgomp.c/thread-limit-3.c
blob: af9bd7887abdc0915d8fb775b8db68d79a42db7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdlib.h>
#include <omp.h>

int
main ()
{
  #pragma omp target if (0)
  #pragma omp teams thread_limit (1)
  if (omp_get_thread_limit () != 1)
    abort ();
  return 0;
}