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
11 ## Remove the type section.
12 # RUN: llvm-objcopy -R TYPE %t %t3
13 # RUN: obj2yaml %t3 | FileCheck --check-prefix=REMOVETYPE --implicit-check-not=TYPE %s
14 ## Check that the producers section is still there.
15 # REMOVETYPE: producers