llvm-project/llvm/test/MC/AsmParser/inline_macro_duplication.ll

9 lines
291 B
LLVM
Raw Normal View History

; RUN: not llc < %s 2>&1 | FileCheck %s
define void @test() {
call void asm sideeffect ".macro FOO\0A.endm", "~{dirflag},~{fpsr},~{flags}"() #1
call void asm sideeffect ".macro FOO\0A.endm", "~{dirflag},~{fpsr},~{flags}"() #1
; CHECK: error: macro 'FOO' is already defined
ret void
}