blob: bcc9e845953eeb338c83f40383dc3ef8320b92de [file] [log] [blame]
Michael Zuckerman1f1a9122017-05-10 13:08:11 +00001# RUN: llvm-mc -triple i386-linux-gnu %s| FileCheck %s
2
3.altmacro
4# single-character string escape
5# To include any single character literally in a string
6# (even if the character would otherwise have some special meaning),
7# you can prefix the character with `!'.
8# For example, you can write `<4.3 !> 5.4!!>' to get the literal text `4.3 > 5.4!'.
9
10# CHECK: workForFun:
11.macro fun1 number
12 .if \number=5
13 lableNotWork:
14 .else
15 workForFun:
16 .endif
17.endm
18
19# CHECK: workForFun2:
20.macro fun2 string
21 .if \string
22 workForFun2:
23 .else
24 notworkForFun2:
25 .endif
26.endm
27
28fun1 <5!!>
29fun2 <5!>4>