1 # RUN: yaml2obj %s -o %t
3 # No symbol matches, because pattern is implicitly enveloped in '^$'
4 # RUN: llvm-objcopy --discard-all --regex -K 'ba' %t %t2
5 # RUN: llvm-readobj --symbols %t2 | FileCheck %s --check-prefix=REGEX1
8 # RUN: llvm-objcopy --discard-all --regex -K 'ba.*' %t %t3
9 # RUN: llvm-readobj --symbols %t3 | FileCheck %s --check-prefix=REGEX2
12 # RUN: llvm-objcopy --discard-all --regex -K '.*ba.*' %t %t4
13 # RUN: llvm-readobj --symbols %t4 | FileCheck %s --check-prefix=REGEX3
16 # RUN: llvm-objcopy --discard-all --regex -K '^([a-z]+)*ba.*$' %t %t5
28 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
30 AddressAlign: 0x0000000000000010
50 #REGEX1-NOT: Name: foobaz
51 #REGEX1-NOT: Name: bar
52 #REGEX1-NOT: Name: rebar
56 #REGEX2-NOT: Name: foobaz
58 #REGEX2-NOT: Name: rebar