brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 22df4ae Raw
59 lines · plain
1# REQUIRES: x862 3# RUN: echo '.globl foo1; foo1:' | \4# RUN:   llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t1.o5# RUN: echo '.globl foo2; foo2:' | \6# RUN:   llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t2.o7# RUN: echo '.globl foo32; foo32:' | \8# RUN:   llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t3.o9# RUN: echo '.globl bar; bar:' | \10# RUN:   llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t4.o11# RUN: rm -f %t.a12# RUN: llvm-ar rcs %t.a %t1.o %t2.o %t3.o %t4.o13 14# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o15 16# RUN: ld.lld -o %t.exe %t.o %t.a17# RUN: llvm-nm %t.exe | FileCheck --check-prefix=NO-OPT %s18 19# NO-OPT-NOT: foo20# NO-OPT-NOT: bar21 22# RUN: ld.lld -o %t.exe %t.o %t.a --undefined-glob foo123# RUN: llvm-readobj --symbols %t.exe | FileCheck --check-prefix=FOO1 %s24 25# FOO1: foo126# FOO1-NOT: foo227 28# RUN: ld.lld -o %t.exe %t.o %t.a --undefined-glob 'foo*'29# RUN: llvm-readobj --symbols %t.exe | FileCheck --check-prefix=FOO-STAR %s30 31# FOO-STAR: foo132# FOO-STAR: foo233# FOO-STAR: foo3234# FOO-STAR-NOT: bar35 36# RUN: ld.lld -o %t.exe %t.o %t.a --undefined-glob 'foo?'37# RUN: llvm-readobj --symbols %t.exe | FileCheck --check-prefix=FOO-Q %s38 39# FOO-Q: foo140# FOO-Q: foo241# FOO-Q-NOT: foo3242# FOO-Q-NOT: bar43 44# RUN: ld.lld -o %t.exe %t.o %t.a --undefined-glob 'foo[13]*'45# RUN: llvm-readobj --symbols %t.exe | FileCheck --check-prefix=FOO13 %s46 47# FOO13: foo148# FOO13-NOT: foo249# FOO13: foo3250# FOO13-NOT: bar51 52# RUN: not ld.lld -o /dev/null %t.o %t.a --undefined-glob '[' 2>&1 | \53# RUN:   FileCheck -check-prefix=BAD-PATTERN %s54 55# BAD-PATTERN: --undefined-glob: invalid glob pattern, unmatched '[': [56 57.globl _start58_start:59