named-metadata.ll 686 B

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