1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/MC/AsmParser/unmatched-if-macro.s
Fangrui Song 93d7286ccd [MC] Reorganize and improve macro tests
* Reorganize tests and add coverage
* Improve diagnostic testing
* Make assert() tests more relevant
* Rename tests to macro-* or altmacro-*

This is not NFC because a (previously untested) diagnostic message is changed.
2020-04-12 22:54:01 -07:00

13 lines
281 B
ArmAsm

# 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