blob: 2a36b1aa8805bd41daedcf4ece47b0317156e8a7 [file]
/* { dg-do compile } */
/* { dg-additional-options "-fdump-tree-omplower" } */
/* Check that a single, non-OMPT variant of libgomp call is emitted for the
scope construct, only with a task reduction clause. */
int x;
void
f1 (void)
{
#pragma omp scope
;
}
void
f2 (void)
{
#pragma omp scope reduction(task, +:x)
;
}
/* { dg-final { scan-tree-dump-times "GOMP_scope_start \\(" 1 "omplower" } } */
/* { dg-final { scan-tree-dump-not "GOMP_scope_start_with_end" "omplower" } } */
/* { dg-final { scan-tree-dump-not "GOMP_scope_end" "omplower" } } */