blob: a9c199e3dc97364c021f9d4541ce03397e429a29 [file]
// RUN: mlir-opt %s -split-input-file -verify-diagnostics | FileCheck %s
//===----------------------------------------------------------------------===//
// Test OpAsmOpInterface
//===----------------------------------------------------------------------===//
func.func @result_name_from_op_asm_type_interface() {
// CHECK-LABEL: @result_name_from_op_asm_type_interface
// CHECK: %op_asm_type_interface
%0 = "test.result_name_from_type"() : () -> !test.op_asm_type_interface
return
}
// -----
func.func @block_argument_name_from_op_asm_type_interface() {
// CHECK-LABEL: @block_argument_name_from_op_asm_type_interface
// CHECK: ^bb0(%op_asm_type_interface
test.block_argument_name_from_type {
^bb0(%arg0: !test.op_asm_type_interface):
"test.terminator"() : ()->()
}
return
}