From 02b1014f3838134b2a0ac7d12573bd67715ab9ed Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Tue, 14 May 2024 16:28:14 -0500 Subject: [PATCH] [flang][OpenMP] Add -fopenmp-version=52 to teams.f90 One of the functions in the test has `teams if(...)`. The `if` clause was only allowed on the `teams` directive in OpenMP 5.2. --- flang/test/Lower/OpenMP/teams.f90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flang/test/Lower/OpenMP/teams.f90 b/flang/test/Lower/OpenMP/teams.f90 index f122a578a6e16..b1b2e7080676e 100644 --- a/flang/test/Lower/OpenMP/teams.f90 +++ b/flang/test/Lower/OpenMP/teams.f90 @@ -1,6 +1,6 @@ ! REQUIRES: openmp_runtime -! RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-version=52 %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPteams_simple subroutine teams_simple()