24 lines · plain
1// RUN: fir-opt --split-input-file --lower-workshare --allow-unregistered-dialect %s | FileCheck %s2 3// Check that we correctly handle nowait4 5// CHECK-LABEL: func.func @nonowait6func.func @nonowait(%arg0: !fir.ref<!fir.array<42xi32>>) {7 // CHECK: omp.barrier8 omp.workshare {9 omp.terminator10 }11 return12}13 14// -----15 16// CHECK-LABEL: func.func @nowait17func.func @nowait(%arg0: !fir.ref<!fir.array<42xi32>>) {18 // CHECK-NOT: omp.barrier19 omp.workshare nowait {20 omp.terminator21 }22 return23}24