1 # RUN: yaml2obj %s -o %t.o
3 # Writing an empty output to a non-existent file will still create it.
4 # RUN: rm -f %t-new.txt
5 # RUN: llvm-objcopy -R .text -O binary %t.o %t-new.txt
6 # RUN: wc -c %t-new.txt | FileCheck %s
8 # Writing an empty output to an existing file will truncate it.
9 # RUN: echo abcd > %t-existing.txt
10 # RUN: llvm-objcopy -R .text -O binary %t.o %t-existing.txt
11 # RUN: wc -c %t-existing.txt | FileCheck %s
13 # In both cases, the file should be empty.
25 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]