1 # RUN: yaml2obj %s -o %t
3 ## Verify that section is dumped before it is removed.
4 # RUN: llvm-objcopy --dump-section .test2=%t1.dump -R .test2 %t %t1
5 # RUN: od -t x1 %t1.dump | FileCheck %s --ignore-case --match-full-lines
7 # CHECK: 0000000 de ad be ef
10 ## Verify that the newly added section is not dumped.
11 # RUN: echo CAFE > %t3.txt
12 # RUN: not llvm-objcopy --dump-section .test3=%t3.dump --add-section .test3=%t3.txt %t %t3 2>&1 | \
13 # RUN: FileCheck %s --check-prefix=NODUMP -DINPUT=%t
15 # NODUMP: error: '[[INPUT]]': section '.test3' not found