| ;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited. |
| |
| ;; RUN: foreach %s %t wasm-opt --remove-exports=@%S/remove-exports-file.txt -all -S -o - | filecheck %s |
| |
| ;; Test a response file as the input to this pass. foo and bar will be removed. |
| (module |
| ;; CHECK: (type $0 (func)) |
| |
| ;; CHECK: (export "keep" (func $keep)) |
| |
| ;; CHECK: (func $foo (type $0) |
| ;; CHECK-NEXT: (drop |
| ;; CHECK-NEXT: (i32.const 1) |
| ;; CHECK-NEXT: ) |
| ;; CHECK-NEXT: ) |
| (func $foo (export "foo") |
| (drop (i32.const 1)) |
| ) |
| |
| ;; CHECK: (func $bar (type $0) |
| ;; CHECK-NEXT: (drop |
| ;; CHECK-NEXT: (i32.const 2) |
| ;; CHECK-NEXT: ) |
| ;; CHECK-NEXT: ) |
| (func $bar (export "bar") |
| (drop (i32.const 2)) |
| ) |
| |
| ;; CHECK: (func $keep (type $0) |
| ;; CHECK-NEXT: (drop |
| ;; CHECK-NEXT: (i32.const 3) |
| ;; CHECK-NEXT: ) |
| ;; CHECK-NEXT: ) |
| (func $keep (export "keep") |
| (drop (i32.const 3)) |
| ) |
| ) |