1; REQUIRES: x86
2
3;; Test we parse symbol versions before LTO, otherwise we may get a symbol
4;; named "foo@@VER1", but not "foo" with the version VER1.
5
6; RUN: llvm-as %s -o %t.o
7; RUN: echo "VER1 {};" > %t.script
8; RUN: ld.lld %t.o -o %t.so -shared --version-script %t.script
9; RUN: llvm-readobj --dyn-syms %t.so | FileCheck %s
10
11; CHECK: Name: foo@@VER1 (
12
13target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
14target triple = "x86_64-unknown-linux-gnu"
15
16module asm ".global foo"
17module asm "foo:"
18module asm ".symver foo,foo@@@VER1"
19