Files
clang-p2996/llvm/test/CodeGen/X86/symbol-redefinition.ll
John Brawn bf3a271960 [CodeGen] Report a normal instead of fatal error for label redefinition
A symbol being redefined as a label is something that can happen as a result of
ordinary input, so it shouldn't cause a fatal error. Also adjust the error
message to match the one you get when a symbol is redefined as a variable.

Differential Revision: https://reviews.llvm.org/D98181
2021-03-09 10:54:41 +00:00

10 lines
288 B
LLVM

; RUN: not llc -mtriple=x86_64-unknown-unknown %s -o - 2>&1 | FileCheck %s
; CHECK: <unknown>:0: error: symbol 'fn' is already defined
define void @fn() section "fn" {
ret void
}
; CHECK: <unknown>:0: error: symbol 'var' is already defined
@var = global i32 0, section "var", align 4