bolt/deps/llvm-18.1.8/mlir/test/IR/top-level.mlir
2025-02-14 19:21:04 +01:00

15 lines
407 B
MLIR

// RUN: mlir-opt --no-implicit-module --verify-diagnostics --split-input-file %s | FileCheck %s
// CHECK-NOT: module
// CHECK: func.func
func.func private @foo()
// -----
// expected-error@-3 {{source must contain a single top-level operation, found: 2}}
func.func private @bar()
func.func private @baz()
// -----
// expected-error@-3 {{source must contain a single top-level operation, found: 0}}