1 ! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3 ! Various checks with the nesting of MASTER construct
5 program omp_nest_master
12 !WARNING: OpenMP directive MASTER has been deprecated, please use MASKED instead.
13 !ERROR: `MASTER` region may not be closely nested inside of `WORKSHARING`, `LOOP`, `TASK`, `TASKLOOP`, or `ATOMIC` region.
20 !WARNING: OpenMP directive MASTER has been deprecated, please use MASKED instead.
21 !ERROR: `MASTER` region may not be closely nested inside of `WORKSHARING`, `LOOP`, `TASK`, `TASKLOOP`, or `ATOMIC` region.
30 !WARNING: OpenMP directive MASTER has been deprecated, please use MASKED instead.
31 !ERROR: `MASTER` region may not be closely nested inside of `WORKSHARING`, `LOOP`, `TASK`, `TASKLOOP`, or `ATOMIC` region.
44 !WARNING: OpenMP directive MASTER has been deprecated, please use MASKED instead.
45 !ERROR: `MASTER` region may not be closely nested inside of `WORKSHARING`, `LOOP`, `TASK`, `TASKLOOP`, or `ATOMIC` region.
55 !WARNING: OpenMP directive MASTER has been deprecated, please use MASKED instead.
56 !ERROR: `MASTER` region may not be closely nested inside of `WORKSHARING`, `LOOP`, `TASK`, `TASKLOOP`, or `ATOMIC` region.
63 !$omp target parallel do simd
66 !WARNING: OpenMP directive MASTER has been deprecated, please use MASKED instead.
67 !ERROR: The only OpenMP constructs that can be encountered during execution of a 'SIMD' region are the `ATOMIC` construct, the `LOOP` construct, the `SIMD` construct, the `SCAN` construct and the `ORDERED` construct with the `SIMD` clause.
68 !ERROR: `MASTER` region may not be closely nested inside of `WORKSHARING`, `LOOP`, `TASK`, `TASKLOOP`, or `ATOMIC` region.
73 !$omp end target parallel do simd
78 !WARNING: OpenMP directive MASTER has been deprecated, please use MASKED instead.
88 !WARNING: OpenMP directive MASTER has been deprecated, please use MASKED instead.
97 !ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
102 !WARNING: OpenMP directive MASTER has been deprecated, please use MASKED instead.
114 !ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
119 !WARNING: OpenMP directive MASTER has been deprecated, please use MASKED instead.
131 !ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
136 !WARNING: OpenMP directive MASTER has been deprecated, please use MASKED instead.
137 !ERROR: `MASTER` region may not be closely nested inside of `WORKSHARING`, `LOOP`, `TASK`, `TASKLOOP`, or `ATOMIC` region.
149 !ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
154 !WARNING: OpenMP directive MASTER has been deprecated, please use MASKED instead.
155 !ERROR: `MASTER` region may not be closely nested inside of `WORKSHARING`, `LOOP`, `TASK`, `TASKLOOP`, or `ATOMIC` region.
165 end program omp_nest_master