1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fopenmp -fdump-tree-optimized" } */
3 /* { dg-final { scan-tree-dump-times "__builtin_GOMP_loop_start \[^\n\r]*, (?:2147483649|-2147483647), 0, 0B, 0B, " 1 "optimized" } } */
4 /* { dg-final { scan-tree-dump-times "__builtin_GOMP_loop_end " 1 "optimized" } } */
5 /* { dg-final { scan-tree-dump-not "__builtin_GOMP_loop_ull\[^\n\r]*_next " "optimized" } } */
6 /* { dg-final { scan-tree-dump-times "__builtin_GOMP_workshare_task_reduction_unregister \\(0\\)" 1 "optimized" } } */
7 /* { dg-final { scan-tree-dump-times "__builtin_GOMP_parallel " 1 "optimized" } } */
9 unsigned long long int j
;
10 void bar (unsigned long long int *);
13 foo (unsigned long long int a
, unsigned long long int b
, unsigned long long int c
)
15 unsigned long long int i
;
17 #pragma omp for reduction (task, *: j) schedule (static, 2)
18 for (i
= a
; i
< b
; i
+= c
)