## 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