Changeset View
Changeset View
Standalone View
Standalone View
mlir/test/mlir-opt/nearmiss.mlir
- This file was added.
// RUN: mlir-opt --split-input-file --verify-diagnostics %s 2> %t && FileCheck --input-file %t %s | |||||
// RUN: cat %t | |||||
func @main() {return} | |||||
// ----- | |||||
// expected-note @+1 {{see existing symbol definition here}} | |||||
func @foo() { return } | |||||
// CHECK: warning: near miss with file split marker | |||||
// CHECK: ---- | |||||
// ---- | |||||
// expected-error @+1 {{redefinition of symbol named 'foo'}} | |||||
func @foo() { return } | |||||
// CHECK: warning: near miss with file split marker | |||||
// CHECK: ---- | |||||
// ---- | |||||
func @bar2() {return } | |||||