brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · c58fb54 Raw
63 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o4# RUN: echo "FOO { global: extern \"C++\" { ab[c]*; }; };" > %t.script5# RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so6# RUN: llvm-readobj -V %t.so | FileCheck %s --check-prefix=ABC7# ABC: Name: _Z3abbi8# ABC: Name: _Z3abci@@FOO9 10# RUN: echo "FOO { global: extern \"C++\" { ab[b]*; }; };" > %t1.script11# RUN: ld.lld --version-script %t1.script -shared %t.o -o %t1.so12# RUN: llvm-readobj -V %t1.so | FileCheck %s --check-prefix=ABB13# ABB: Name: _Z3abbi@@FOO14# ABB: Name: _Z3abci15 16# RUN: echo "FOO { global: extern \"C++\" { ab[a-b]*; }; };" > %t2.script17# RUN: ld.lld --version-script %t2.script -shared %t.o -o %t2.so18# RUN: llvm-readobj -V %t2.so | FileCheck %s --check-prefix=ABB19 20# RUN: echo "FOO { global: extern \"C++\" { ab[a-c]*; }; };" > %t3.script21# RUN: ld.lld --version-script %t3.script -shared %t.o -o %t3.so22# RUN: llvm-readobj -V %t3.so | FileCheck %s --check-prefix=ABBABC23# ABBABC: Name: _Z3abbi@@FOO24# ABBABC: Name: _Z3abci@@FOO25 26# RUN: echo "FOO { global: extern \"C++\" { ab[a-bc-d]*; }; };" > %t4.script27# RUN: ld.lld --version-script %t4.script -shared %t.o -o %t4.so28# RUN: llvm-readobj -V %t4.so | FileCheck %s --check-prefix=ABBABC29 30# RUN: echo "FOO { global: extern \"C++\" { ab[a-bd-e]*; }; };" > %t5.script31# RUN: ld.lld --version-script %t5.script -shared %t.o -o %t5.so32# RUN: llvm-readobj -V %t5.so | FileCheck %s --check-prefix=ABB33 34# RUN: echo "FOO { global: extern \"C++\" { ab[^a-c]*; }; };" > %t6.script35# RUN: ld.lld --version-script %t6.script -shared %t.o -o %t6.so36# RUN: llvm-readobj -V %t6.so | FileCheck %s --check-prefix=NO37# NO:  Name: _Z3abbi38# NO:  Name: _Z3abci39 40# RUN: echo "FOO { global: extern \"C++\" { ab[^c-z]*; }; };" > %t7.script41# RUN: ld.lld --version-script %t7.script -shared %t.o -o %t7.so42# RUN: llvm-readobj -V %t7.so | FileCheck %s --check-prefix=ABB43 44# RUN: echo "FOO { global: extern \"C++\" { a[x-za-b][a-c]*; }; };" > %t8.script45# RUN: ld.lld --version-script %t8.script -shared %t.o -o %t8.so46# RUN: llvm-readobj -V %t8.so | FileCheck %s --check-prefix=ABBABC47 48# RUN: echo "FOO { global: extern \"C++\" { a[; }; };" > %t9.script49# RUN: not ld.lld --version-script %t9.script -shared %t.o -o /dev/null 2>&1 \50# RUN:   | FileCheck %s --check-prefix=ERROR51# ERROR: invalid glob pattern, unmatched '[': a[52 53.text54.globl _Z3abbi55.type _Z3abbi,@function56_Z3abbi:57retq58 59.globl _Z3abci60.type _Z3abci,@function61_Z3abci:62retq63