xref: /llvm-project/llvm/test/MC/AsmParser/unmatched-if-macro.s (revision 011b4d4706eea722d63438892afefdb8152b7b62)
1# RUN: export LSAN_OPTIONS=detect_leaks=0
2# RUN: not llvm-mc -triple x86_64 %s -o /dev/null 2>&1 | FileCheck %s
3
4## This also tests that we don't assert due to an active macro instantiation.
5# CHECK: <instantiation>:4:1: error: unmatched .ifs or .elses
6
7	.macro macro parameter=0
8		.if \parameter
9		.else
10	.endm
11
12	macro 1
13
14