llvm/mlir/test/Bytecode/bytecode_callback_with_custom_attribute.mlir

// RUN: mlir-opt %s -split-input-file --test-bytecode-roundtrip="test-kind=3" | FileCheck %s --check-prefix=TEST_3
// RUN: mlir-opt %s -split-input-file --test-bytecode-roundtrip="test-kind=4" | FileCheck %s --check-prefix=TEST_4

"test.versionedC"() <{attribute = #test.attr_params<42, 24>}> : () -> ()

// TEST_3: Overriding TestAttrParamsAttr encoding...
// TEST_3: "test.versionedC"() <{attribute = dense<[42, 24]> : tensor<2xi32>}> : () -> ()

// -----

"test.versionedC"() <{attribute = dense<[42, 24]> : tensor<2xi32>}> : () -> ()

// TEST_4: Overriding parsing of TestAttrParamsAttr encoding...
// TEST_4: "test.versionedC"() <{attribute = #test.attr_params<42, 24>}> : () -> ()