1 # RUN: yaml2obj %s -o %t.o
2 # RUN: not llvm-objcopy -R .foo %t.o %t1 2>&1 >/dev/null | FileCheck %s --check-prefix=ERR
4 # RUN: not llvm-strip --no-strip-all -R .foo %t2 2>&1 >/dev/null | FileCheck %s --check-prefix=ERR
19 # ERR: Section .foo cannot be removed because it is referenced by the section .bar
21 # RUN: llvm-objcopy --allow-broken-links -R .foo %t.o %t3
22 # RUN: llvm-readobj --sections %t3 | FileCheck %s --check-prefix=SECTIONS --implicit-check-not=.foo
24 # RUN: llvm-strip --no-strip-all --allow-broken-links -R .foo %t4
25 # RUN: llvm-readobj --sections %t4 | FileCheck %s --check-prefix=SECTIONS --implicit-check-not=.foo
27 # SECTIONS: Name: .bar