aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/fatal-warnings.s
blob: 0bc2a2b4447623dbb4affd61dce5ed829c5b7a56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/warn-common.s -o %t2.o

# RUN: ld.lld --warn-common %t1.o %t2.o -o %t1.out 2>&1 | \
# RUN:   FileCheck -check-prefix=ERR %s
# ERR: multiple common of

# RUN: not ld.lld --warn-common --fatal-warnings %t1.o %t2.o -o %t2.out 2>&1 | \
# RUN:   FileCheck -check-prefix=ERR %s

.globl _start
_start:

.type arr,@object
.comm arr,4,4