Mercurial > hg > CbC > CbC_llvm
comparison lld/test/ELF/version-script-glob.s @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | 2e18cbf3894f |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 # REQUIRES: x86 | |
2 | |
3 # RUN: echo "{ global: foo*; bar*; local: *; };" > %t.script | |
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o | |
5 # RUN: ld.lld -shared --version-script %t.script %t.o -o %t.so | |
6 # RUN: llvm-readelf --dyn-syms %t.so | FileCheck %s | |
7 | |
8 .globl foo1, bar1, zed1, local | |
9 foo1: | |
10 bar1: | |
11 zed1: | |
12 local: | |
13 | |
14 # CHECK: bar1{{$}} | |
15 # CHECK-NEXT: foo1{{$}} | |
16 # CHECK-NOT: {{.}} | |
17 | |
18 # RUN: echo "{ global : local; local: *; };" > %t1.script | |
19 # RUN: ld.lld -shared --version-script %t1.script %t.o -o %t.so | |
20 # RUN: llvm-readelf --dyn-syms %t.so | FileCheck --check-prefix=LOCAL %s | |
21 | |
22 # LOCAL: local{{$}} | |
23 # LOCAL-NOT: {{.}} |