1 // RUN: mlir-opt %s -test-func-erase-result -split-input-file | FileCheck %s
3 // CHECK: func private @f(){{$}}
4 // CHECK-NOT: attributes{{.*}}result
5 func.func private @f() -> (f32 {test.erase_this_result})
9 // CHECK: func private @f() -> (f32 {test.A})
10 // CHECK-NOT: attributes{{.*}}result
11 func.func private @f() -> (
12 f32 {test.erase_this_result},
18 // CHECK: func private @f() -> (f32 {test.A})
19 // CHECK-NOT: attributes{{.*}}result
20 func.func private @f() -> (
22 f32 {test.erase_this_result}
27 // CHECK: func private @f() -> (f32 {test.A}, f32 {test.B})
28 // CHECK-NOT: attributes{{.*}}result
29 func.func private @f() -> (
31 f32 {test.erase_this_result},
37 // CHECK: func private @f() -> (f32 {test.A}, f32 {test.B})
38 // CHECK-NOT: attributes{{.*}}result
39 func.func private @f() -> (
41 f32 {test.erase_this_result},
42 f32 {test.erase_this_result},
48 // CHECK: func private @f() -> (f32 {test.A}, f32 {test.B}, f32 {test.C})
49 // CHECK-NOT: attributes{{.*}}result
50 func.func private @f() -> (
52 f32 {test.erase_this_result},
54 f32 {test.erase_this_result},
60 // CHECK: func private @f() -> (tensor<1xf32>, tensor<2xf32>, tensor<3xf32>)
61 // CHECK-NOT: attributes{{.*}}result
62 func.func private @f() -> (
64 f32 {test.erase_this_result},
66 f32 {test.erase_this_result},