Skip to content

Commit e7057a8

Browse files
committed
More tests
1 parent 185a82f commit e7057a8

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// RUN: fir-opt --split-input-file --lower-workshare --allow-unregistered-dialect %s | FileCheck %s
2+
3+
// CHECK-LABEL: func.func @nonowait
4+
func.func @nonowait(%arg0: !fir.ref<!fir.array<42xi32>>) {
5+
// CHECK: omp.barrier
6+
omp.workshare {
7+
omp.terminator
8+
}
9+
return
10+
}
11+
12+
// -----
13+
14+
// CHECK-LABEL: func.func @nowait
15+
func.func @nowait(%arg0: !fir.ref<!fir.array<42xi32>>) {
16+
// CHECK-NOT: omp.barrier
17+
omp.workshare nowait {
18+
omp.terminator
19+
}
20+
return
21+
}

0 commit comments

Comments
 (0)