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.
8 ## Requests to remove nonexistent sections are silently ignored.
9 # RUN: llvm-objcopy --remove-section=nonexistent=%t.sec %t 2>&1 | count 0