blob: 9fa37a7989d4f8757f58ae395fc1fee766bc0494 [file] [log] [blame]
Nick Lewycky1e85ef62011-06-16 17:14:38 +00001; RUN: llvm-as < %s | llvm-dis | FileCheck %s
Duncan P. N. Exon Smith13f5c582014-08-19 21:08:27 +00002; RUN: verify-uselistorder %s
Nick Lewycky1e85ef62011-06-16 17:14:38 +00003
Duncan P. N. Exon Smith1ef70ff2014-12-15 19:07:53 +00004!0 = !{!"zero"}
5!1 = !{!"one"}
6!2 = !{!"two"}
Nick Lewycky1e85ef62011-06-16 17:14:38 +00007
8!foo = !{!0, !1, !2}
9; CHECK: !foo = !{!0, !1, !2}
10
11!\23pragma = !{!0, !1, !2}
12; CHECK: !\23pragma = !{!0, !1, !2}
13
14; \31 is the digit '1'. On emission, we escape the first character (to avoid
15; conflicting with anonymous metadata), but not the subsequent ones.
16!\31\31\31 = !{!0, !1, !2}
17; CHECK: !\3111 = !{!0, !1, !2}
18
19!\22name\22 = !{!0, !1, !2}
20; CHECK: !\22name\22 = !{!0, !1, !2}
21
22; \x doesn't mean anything, so we parse it literally but escape the \ into \5C
23; when emitting it, followed by xfoo.
24!\xfoo = !{!0, !1, !2}
25; CHECK: !\5Cxfoo = !{!0, !1, !2}