1 // This file contains a test case representative of a dialect parsing an
2 // attribute with versioned custom encoding.
4 //===--------------------------------------------------------------------===//
5 // Test attribute upgrade
6 //===--------------------------------------------------------------------===//
8 // COM: bytecode contains
11 // COM: "test.versionedB"() <{attribute = #test.attr_params<24, 42>}> : () -> ()
13 // RUN: mlir-opt %S/versioned-attr-1.12.mlirbc 2>&1 | FileCheck %s --check-prefix=CHECK1
14 // CHECK1: "test.versionedB"() <{attribute = #test.attr_params<42, 24>}> : () -> ()
16 //===--------------------------------------------------------------------===//
17 // Test attribute upgrade
18 //===--------------------------------------------------------------------===//
20 // COM: bytecode contains
23 // COM: "test.versionedB"() <{attribute = #test.attr_params<42, 24>}> : () -> ()
25 // RUN: mlir-opt %S/versioned-attr-2.0.mlirbc 2>&1 | FileCheck %s --check-prefix=CHECK2
26 // CHECK2: "test.versionedB"() <{attribute = #test.attr_params<42, 24>}> : () -> ()