1## Test the --remove-section flag.
2# RUN: yaml2obj %s -o %t
3# RUN: llvm-objcopy -R producers %t %t2
4# RUN: obj2yaml %t2 | FileCheck --implicit-check-not=producers %s
5## Check that the producers section has been removed, but not the type section.
6# CHECK: TYPE
7
8## Requests to remove nonexistent sections are silently ignored.
9# RUN: llvm-objcopy --remove-section=nonexistent=%t.sec %t 2>&1 | count 0
10
11--- !WASM
12FileHeader:
13  Version: 0x00000001
14Sections:
15  - Type: TYPE
16    Signatures:
17      - Index: 0
18        ParamTypes:
19          - I32
20        ReturnTypes:
21          - F32
22  - Type: CUSTOM
23    Name: producers
24    Tools:
25      - Name:   clang
26        Version: 9.0.0
27