mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
87e909a8b2
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
10 lines
331 B
LLVM
10 lines
331 B
LLVM
; RUN: not llc -filetype=null %s 2>&1 | FileCheck %s
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
module asm ".equiv var, __var"
|
|
|
|
@var = global i32 0
|
|
; CHECK: <unknown>:0: error: symbol 'var' is already defined
|
|
; CHECK: <unknown>:0: error: symbol 'var' is already defined
|