1# RUN: %python %s | FileCheck %s
2
3from mlir_standalone.ir import *
4from mlir_standalone.dialects import (
5  builtin as builtin_d,
6  standalone as standalone_d
7)
8
9with Context():
10  standalone_d.register_dialect()
11  module = Module.parse("""
12    %0 = arith.constant 2 : i32
13    %1 = standalone.foo %0 : i32
14    """)
15  # CHECK: %[[C:.*]] = arith.constant 2 : i32
16  # CHECK: standalone.foo %[[C]] : i32
17  print(str(module))
18