comparison lld/test/ELF/symver-archive.s @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 1d019706d866
children
comparison
equal deleted inserted replaced
232:70dce7da266c 236:c4bab56944e8
4 # RUN: llvm-ar rcs %t.a %t1 4 # RUN: llvm-ar rcs %t.a %t1
5 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/symver-archive1.s -o %t2.o 5 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/symver-archive1.s -o %t2.o
6 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/symver-archive2.s -o %t3.o 6 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/symver-archive2.s -o %t3.o
7 # RUN: ld.lld -o /dev/null %t2.o %t3.o %t.a 7 # RUN: ld.lld -o /dev/null %t2.o %t3.o %t.a
8 8
9 # RUN: not ld.lld -o /dev/null %t2.o %t3.o %t1 2>&1 | FileCheck %s --check-prefix=ERR
10
11 # ERR: error: duplicate symbol: x
12
13 ## If defined xx and xx@@VER are in different files, report a duplicate definition error like GNU ld.
14 # ERR: error: duplicate symbol: xx
15 # ERR-NEXT: >>> defined at {{.*}}2.o:(.text+0x0)
16 # ERR-NEXT: >>> defined at {{.*}}1:(.text+0x0)
17
9 .text 18 .text
10 .globl x 19 .globl x
11 .type x, @function 20 .type x, @function
12 x: 21 x:
13 22