1// RUN: mlir-opt %s -test-legalize-unknown-root-patterns | FileCheck %s 2 3// Test that all `test` dialect operations are removed. 4// CHECK-LABEL: func @remove_all_ops 5func @remove_all_ops(%arg0: i32) { 6 // CHECK-NEXT: return 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 12 return 13} 14