1 // RUN: mlir-opt %s -test-legalize-unknown-root-patterns | FileCheck %s
3 // Test that all `test` dialect operations are removed.
4 // CHECK-LABEL: func @remove_all_ops
5 func.func @remove_all_ops(%arg0: i32) {
7 %0 = "test.illegal_op_a"() : () -> i32
8 %1 = "test.illegal_op_b"() : () -> i32
9 %2 = "test.illegal_op_c"() : () -> i32
10 %3 = "test.illegal_op_d"() : () -> i32
11 %4 = "test.illegal_op_e"() : () -> i32