You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
669 B

## Test the --remove-section flag.
# RUN: yaml2obj %s -o %t
# RUN: llvm-objcopy -R producers %t %t2
# RUN: obj2yaml %t2 | FileCheck --implicit-check-not=producers %s
## Check that the producers section has been removed, but not the type section.
# CHECK: TYPE
## Requests to remove nonexistent sections are silently ignored.
# RUN: llvm-objcopy --remove-section=nonexistent=%t.sec %t 2>&1 | count 0
--- !WASM
FileHeader:
Version: 0x00000001
Sections:
- Type: TYPE
Signatures:
- Index: 0
ParamTypes:
- I32
ReturnTypes:
- F32
- Type: CUSTOM
Name: producers
Tools:
- Name: clang
Version: 9.0.0