Skip to content

Commit e6ef836

Browse files
authored
[flang][OpenMP] Add -fopenmp-version=52 to teams.f90 (#92180)
One of the functions in the test has `teams if(...)`. The `if` clause was only allowed on the `teams` directive in OpenMP 5.2.
1 parent de18f5e commit e6ef836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/test/Lower/OpenMP/teams.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! REQUIRES: openmp_runtime
22

3-
! RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s
3+
! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-version=52 %s -o - | FileCheck %s
44

55
! CHECK-LABEL: func @_QPteams_simple
66
subroutine teams_simple()

0 commit comments

Comments
 (0)