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 5 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 9 10## no-warn-common is ignored 11# RUN: ld.lld --no-warn-common %t1.o %t2.o -o %t.out 12# RUN: llvm-readobj %t.out > /dev/null 13 14## Report if common is overridden 15# RUN: ld.lld --warn-common %t1.o %t3.o -o %t.out 2>&1 | FileCheck %s --check-prefix=OVER 16# OVER: common arr is overridden 17 18## Report if common is overridden, but in different order 19# RUN: ld.lld --warn-common %t3.o %t1.o -o %t.out 2>&1 | FileCheck %s --check-prefix=OVER 20 21.globl _start 22_start: 23 24.type arr,@object 25.comm arr,4,4 26