1 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
3 !0 = metadata !{metadata !"zero"}
4 !1 = metadata !{metadata !"one"}
5 !2 = metadata !{metadata !"two"}
8 ; CHECK: !foo = !{!0, !1, !2}
10 !\23pragma = !{!0, !1, !2}
11 ; CHECK: !\23pragma = !{!0, !1, !2}
13 ; \31 is the digit '1'. On emission, we escape the first character (to avoid
14 ; conflicting with anonymous metadata), but not the subsequent ones.
15 !\31\31\31 = !{!0, !1, !2}
16 ; CHECK: !\3111 = !{!0, !1, !2}
18 !\22name\22 = !{!0, !1, !2}
19 ; CHECK: !\22name\22 = !{!0, !1, !2}
21 ; \x doesn't mean anything, so we parse it literally but escape the \ into \5C
22 ; when emitting it, followed by xfoo.
23 !\xfoo = !{!0, !1, !2}
24 ; CHECK: !\5Cxfoo = !{!0, !1, !2}