Nick Lewycky | 1e85ef6 | 2011-06-16 17:14:38 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llvm-dis | FileCheck %s |
Duncan P. N. Exon Smith | 13f5c58 | 2014-08-19 21:08:27 +0000 | [diff] [blame] | 2 | ; RUN: verify-uselistorder %s |
Nick Lewycky | 1e85ef6 | 2011-06-16 17:14:38 +0000 | [diff] [blame] | 3 | |
Duncan P. N. Exon Smith | 1ef70ff | 2014-12-15 19:07:53 +0000 | [diff] [blame] | 4 | !0 = !{!"zero"} |
| 5 | !1 = !{!"one"} |
| 6 | !2 = !{!"two"} |
Nick Lewycky | 1e85ef6 | 2011-06-16 17:14:38 +0000 | [diff] [blame] | 7 | |
| 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} |