Skip to content

Commit 660ef83

Browse files
committed
Fix OpenACC mlir test
1 parent 8ace749 commit 660ef83

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

mlir/test/Dialect/OpenACC/invalid.mlir

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -312,18 +312,6 @@ acc.firstprivate.recipe @privatization_i32 : !llvm.ptr<i32> init {
312312

313313
// -----
314314

315-
// expected-error@+1 {{expects init region to yield a value of the privatization type}}
316-
acc.firstprivate.recipe @privatization_i32 : !llvm.ptr<f32> init {
317-
^bb0(%arg0 : !llvm.ptr<f32>):
318-
%c1 = arith.constant 1 : i32
319-
%c0 = arith.constant 0 : i32
320-
%0 = llvm.alloca %c1 x i32 : (i32) -> !llvm.ptr<i32>
321-
llvm.store %c0, %0 : !llvm.ptr<i32>
322-
acc.yield %0 : !llvm.ptr<i32>
323-
} copy {}
324-
325-
// -----
326-
327315
// expected-error@+1 {{expects non-empty copy region}}
328316
acc.firstprivate.recipe @privatization_i32 : !llvm.ptr<i32> init {
329317
^bb0(%arg0 : !llvm.ptr<i32>):

0 commit comments

Comments
 (0)