[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / warn-common.s
blobddb4b687a5aac4cd1041957d506bbf0c6b80e382
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/warn-common.s -o %t2.o
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/warn-common2.s -o %t3.o
6 ## Report multiple commons if warn-common is specified
7 # RUN: ld.lld --warn-common %t1.o %t2.o -o %t.out 2>&1 | FileCheck %s --check-prefix=WARN
8 # WARN: multiple common of arr
10 # RUN: ld.lld --fatal-warnings --warn-common --no-warn-common %t1.o %t2.o -o %t.out
12 ## Report if common is overridden
13 # RUN: ld.lld --warn-common %t1.o %t3.o -o %t.out 2>&1 | FileCheck %s --check-prefix=OVER
14 # OVER: common arr is overridden
16 ## Report if common is overridden, but in different order
17 # RUN: ld.lld --warn-common %t3.o %t1.o -o %t.out 2>&1 | FileCheck %s --check-prefix=OVER
19 .globl _start
20 _start:
22 .type arr,@object
23 .comm arr,4,4