blob: 35f245200d35ad3b9b5069c111de633030c91b29 [file] [log] [blame]
Mauricio Sifontes8f4859d2020-08-18 16:47:061// UNSUPPORTED: -windows-
2// RUN: mlir-reduce %s -test %S/failure-test.sh -pass-test DCE | FileCheck %s
3// This input should be reduced by the pass pipeline so that only
Kazuaki Ishizakia23d0552020-08-27 06:37:234// the @simple1 function remains as the other functions should be
Mauricio Sifontes8f4859d2020-08-18 16:47:065// removed by the dead code elimination pass.
6// CHECK-LABEL: func @simple1(%arg0: i1, %arg1: memref<2xf32>, %arg2: memref<2xf32>) {
7
8// CHECK-NOT: func @dead_nested_function
9func @dead_private_function() attributes { sym_visibility = "private" }
10
11// CHECK-NOT: func @dead_nested_function
12func @dead_nested_function() attributes { sym_visibility = "nested" }
13
14func @simple1(%arg0: i1, %arg1: memref<2xf32>, %arg2: memref<2xf32>) {
15 "test.crashOp" () : () -> ()
16 return
17}