linux-packaging-mono/external/llvm/test/MC/AsmParser/altmacro_string_escape.s
Xamarin Public Jenkins (auto-signing) 64ac736ec5 Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
2019-04-12 14:10:50 +00:00

30 lines
603 B
ArmAsm

# RUN: llvm-mc -triple i386-linux-gnu %s| FileCheck %s
.altmacro
# single-character string escape
# To include any single character literally in a string
# (even if the character would otherwise have some special meaning),
# you can prefix the character with `!'.
# For example, you can write `<4.3 !> 5.4!!>' to get the literal text `4.3 > 5.4!'.
# CHECK: workForFun:
.macro fun1 number
.if \number=5
lableNotWork:
.else
workForFun:
.endif
.endm
# CHECK: workForFun2:
.macro fun2 string
.if \string
workForFun2:
.else
notworkForFun2:
.endif
.endm
fun1 <5!!>
fun2 <5!>4>