Home | History | Annotate | Download | only in Assembler
      1 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
      2 
      3 !0 = metadata !{metadata !"zero"}
      4 !1 = metadata !{metadata !"one"}
      5 !2 = metadata !{metadata !"two"}
      6 
      7 !foo = !{!0, !1, !2}
      8 ; CHECK: !foo = !{!0, !1, !2}
      9 
     10 !\23pragma = !{!0, !1, !2}
     11 ; CHECK: !\23pragma = !{!0, !1, !2}
     12 
     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}
     17 
     18 !\22name\22 = !{!0, !1, !2}
     19 ; CHECK: !\22name\22 = !{!0, !1, !2}
     20 
     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}
     25