brintos

brintos / llvm-project-archived public Read only

0
0
Text · 832 B · 54a5e01 Raw
25 lines · plain
1; REQUIRES: x862; RUN: llvm-as %s -o %t.o3; RUN: echo "VERSION_1.0{ global: foo; local: *; }; VERSION_2.0{ global: bar; local: *; };" > %t.script4; RUN: ld.lld %t.o -o %t2 -shared --version-script %t.script -save-temps5; RUN: llvm-dis < %t2.0.0.preopt.bc | FileCheck %s6; RUN: llvm-readelf --dyn-syms %t2 | FileCheck --check-prefix=DSO %s7 8target triple = "x86_64-unknown-linux-gnu"9target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"10 11define void @foo() {12  ret void13}14 15define void @bar() {16  ret void17}18 19; CHECK: define void @foo()20; CHECK: define void @bar()21 22; DSO: Symbol table '.dynsym' contains 3 entries:23; DSO:      1: {{.*}}               1 FUNC    GLOBAL DEFAULT [[#]] foo@@VERSION_1.0{{$}}24; DSO:      2: {{.*}}               1 FUNC    GLOBAL DEFAULT [[#]] bar@@VERSION_2.0{{$}}25