aboutsummaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.c-c++-common/task-detach-11.c
blob: dd002dcc8120b890b861a32972ca4719db23d34f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do run } */

#include <omp.h>

/* Test the detach clause when the task is undeferred.  */

int main (void)
{
  omp_event_handle_t event;

  #pragma omp task detach (event)
    omp_fulfill_event (event);
}