bolt/deps/llvm-18.1.8/mlir/test/mlir-cpu-runner/verify-entry-point-result.mlir
2025-02-14 19:21:04 +01:00

7 lines
224 B
MLIR

// RUN: not mlir-cpu-runner %s -e entry -entry-point-result=void 2>&1 | FileCheck %s
// CHECK: Error: expected void function
llvm.func @entry() -> (i32) {
%0 = llvm.mlir.constant(0 : index) : i32
llvm.return %0 : i32
}