blob: ca9bb2f3b4f9f836a6633499b8a6b7cd2f4a2550 [file] [log] [blame]
## Test if providing objcopy with an invalid regex generates an error.
# RUN: yaml2obj %s -o %t
# RUN: not llvm-objcopy --regex --strip-symbol='[^)\' %t /dev/null 2>&1 | FileCheck %s
# CHECK: error: cannot compile regular expression '[^)\'
!ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_EXEC
Machine: EM_X86_64