1 ! RUN: %flang_fc1 -fdebug-pre-fir-tree -fopenmp %s | FileCheck %s
3 subroutine openmp_sections(x
, y
)
5 integer, intent(inout
)::x
, y
7 !==============================================================================
9 !==============================================================================
13 !CHECK: OpenMPConstruct
14 !CHECK: End OpenMPConstruct
16 !==============================================================================
17 ! single section, without `!$omp section`
18 !==============================================================================
23 !CHECK: OpenMPConstruct
24 !CHECK: OpenMPConstruct
26 !CHECK: End OpenMPConstruct
27 !CHECK: End OpenMPConstruct
29 !==============================================================================
30 ! single section with `!$omp section`
31 !==============================================================================
37 !CHECK: OpenMPConstruct
38 !CHECK: OpenMPConstruct
40 !CHECK: End OpenMPConstruct
41 !CHECK: End OpenMPConstruct
43 !==============================================================================
45 !==============================================================================
55 !CHECK: OpenMPConstruct
56 !CHECK: OpenMPConstruct
58 !CHECK: End OpenMPConstruct
59 !CHECK: OpenMPConstruct
61 !CHECK: End OpenMPConstruct
62 !CHECK: OpenMPConstruct
64 !CHECK: End OpenMPConstruct
65 !CHECK: End OpenMPConstruct
67 !==============================================================================
68 ! multiple sections with clauses
69 !==============================================================================
70 !$omp sections PRIVATE(x) FIRSTPRIVATE(y)
77 !$omp end sections NOWAIT
79 !CHECK: OpenMPConstruct
80 !CHECK: OpenMPConstruct
82 !CHECK: End OpenMPConstruct
83 !CHECK: OpenMPConstruct
85 !CHECK: End OpenMPConstruct
86 !CHECK: OpenMPConstruct
88 !CHECK: End OpenMPConstruct
89 !CHECK: End OpenMPConstruct
91 end subroutine openmp_sections