1// RUN: mlir-opt %s -canonicalize -split-input-file | FileCheck %s 2 3func.func @test() -> i32 { 4 %c5 = "test.constant"() {value = 5 : i32} : () -> i32 5 %res = "test.manual_cpp_op_with_fold"(%c5) : (i32) -> i32 6 return %res : i32 7} 8 9// CHECK-LABEL: func.func @test 10// CHECK-NEXT: %[[C:.*]] = "test.constant"() <{value = 5 : i32}> 11// CHECK-NEXT: return %[[C]] 12