llvm-for-llvmta/test/MC/AsmParser/unmatched-if-macro.s

13 lines
281 B
ArmAsm
Raw Normal View History

2022-04-25 10:02:23 +02:00
# RUN: not llvm-mc -triple x86_64 %s -o /dev/null 2>&1 | FileCheck %s
## This also tests that we don't assert due to an active macro instantiation.
# CHECK: <instantiation>:4:1: error: unmatched .ifs or .elses
.macro macro parameter=0
.if \parameter
.else
.endm
macro 1