1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
| ; RUN: llvm-rc /FO %t -- %p/Inputs/tag-escape.rc
; RUN: llvm-readobj %t | FileCheck %s
; CHECK: Resource type (int): MENU (ID 4)
; CHECK-NEXT: Resource name (int): 1
; CHECK-NEXT: Data version: 0
; CHECK-NEXT: Memory flags: 0x1030
; CHECK-NEXT: Language ID: 1033
; CHECK-NEXT: Version (major): 0
; CHECK-NEXT: Version (minor): 0
; CHECK-NEXT: Characteristics: 0
; CHECK-NEXT: Data size: 304
; CHECK-NEXT: Data: (
; CHECK-NEXT: 0000: 00000000 00000000 48006500 6C006C00 |........H.e.l.l.|
; CHECK-NEXT: 0010: 6F002100 00000000 01000800 5C006200 |o.!.........\.b.|
; CHECK-NEXT: 0020: 5C006300 5C006400 5C006500 5C006600 |\.c.\.d.\.e.\.f.|
; CHECK-NEXT: 0030: 5C006700 5C006800 5C006900 5C006A00 |\.g.\.h.\.i.\.j.|
; CHECK-NEXT: 0040: 5C006B00 5C006C00 5C006D00 0A005C00 |\.k.\.l.\.m...\.|
; CHECK-NEXT: 0050: 6F005C00 70005C00 71000D00 5C007300 |o.\.p.\.q...\.s.|
; CHECK-NEXT: 0060: 09005C00 75005C00 76005C00 77000000 |..\.u.\.v.\.w...|
; CHECK-NEXT: 0070: 00000200 08005C00 42005C00 43005C00 |......\.B.\.C.\.|
; CHECK-NEXT: 0080: 44005C00 45005C00 46005C00 47005C00 |D.\.E.\.F.\.G.\.|
; CHECK-NEXT: 0090: 48005C00 49005C00 4A005C00 4B005C00 |H.\.I.\.J.\.K.\.|
; CHECK-NEXT: 00A0: 4C005C00 4D005C00 4E005C00 4F005C00 |L.\.M.\.N.\.O.\.|
; CHECK-NEXT: 00B0: 50005C00 51005C00 52005C00 53000900 |P.\.Q.\.R.\.S...|
; CHECK-NEXT: 00C0: 5C005500 5C005600 5C005700 00000000 |\.U.\.V.\.W.....|
; CHECK-NEXT: 00D0: 03000000 00000400 00000000 05000100 |................|
; CHECK-NEXT: 00E0: 09004900 49003100 49003100 31004900 |..I.I.1.I.1.1.I.|
; CHECK-NEXT: 00F0: 31003100 31004900 31003100 31003100 |1.1.1.I.1.1.1.1.|
; CHECK-NEXT: 0100: 49003100 31003100 31003100 00000000 |I.1.1.1.1.1.....|
; CHECK-NEXT: 0110: 06002200 22002200 5C005C00 5C000000 |..".".".\.\.\...|
; CHECK-NEXT: 0120: 00000700 61000000 80000800 61000000 |....a.......a...|
; CHECK-NEXT: )
; CHECK-DAG: Resource type (int): MENU (ID 4)
; CHECK-NEXT: Resource name (int): 2
; CHECK-NEXT: Data version: 0
; CHECK-NEXT: Memory flags: 0x1030
; CHECK-NEXT: Language ID: 1033
; CHECK-NEXT: Version (major): 0
; CHECK-NEXT: Version (minor): 0
; CHECK-NEXT: Characteristics: 0
; CHECK-NEXT: Data size: 116
; CHECK-NEXT: Data: (
; CHECK-NEXT: 0000: 00000000 00000000 48006500 6C006C00 |........H.e.l.l.|
; CHECK-NEXT: 0010: 6F002100 00000000 01000800 0A000D00 |o.!.............|
; CHECK-NEXT: 0020: 09000000 00000200 08000900 00000000 |................|
; CHECK-NEXT: 0030: 03000000 00000400 00000000 05000100 |................|
; CHECK-NEXT: 0040: 09004900 49024912 49924992 49923100 |..I.I.I.I.I.I.1.|
; CHECK-NEXT: 0050: 00000000 06002200 22002200 5C005C00 |......".".".\.\.|
; CHECK-NEXT: 0060: 5C000000 00000700 61000000 80000800 |\.......a.......|
; CHECK-NEXT: 0070: 61000000 |a...|
; CHECK-NEXT: )
; CHECK-DAG: Resource type (string): USERDEFINED
; CHECK-NEXT: Resource name (int): 500
; CHECK-NEXT: Data version: 0
; CHECK-NEXT: Memory flags: 0x30
; CHECK-NEXT: Language ID: 1033
; CHECK-NEXT: Version (major): 0
; CHECK-NEXT: Version (minor): 0
; CHECK-NEXT: Characteristics: 0
; CHECK-NEXT: Data size: 195
; CHECK-NEXT: Data: (
; CHECK-NEXT: 0000: 48656C6C 6F21085C 625C635C 645C655C |Hello!.\b\c\d\e\|
; CHECK-NEXT: 0010: 665C675C 685C695C 6A5C6B5C 6C5C6D0A |f\g\h\i\j\k\l\m.|
; CHECK-NEXT: 0020: 5C6F5C70 5C710D5C 73095C75 5C765C77 |\o\p\q.\s.\u\v\w|
; CHECK-NEXT: 0030: 005C795C 7A085C42 5C435C44 5C455C46 |.\y\z.\B\C\D\E\F|
; CHECK-NEXT: 0040: 5C475C48 5C495C4A 5C4B5C4C 5C4D5C4E |\G\H\I\J\K\L\M\N|
; CHECK-NEXT: 0050: 5C4F5C50 5C515C52 5C53095C 555C565C |\O\P\Q\R\S.\U\V\|
; CHECK-NEXT: 0060: 57005C59 5C5A0001 12123312 33341233 |W.\Y\Z....3.34.3|
; CHECK-NEXT: 0070: 34350001 12123312 33341233 34350167 |45....3.34.345.g|
; CHECK-NEXT: 0080: 00010808 30083030 08303030 08303030 |....0.00.000.000|
; CHECK-NEXT: 0090: 30083030 30303001 09494931 49313149 |0.00000..II1I11I|
; CHECK-NEXT: 00A0: 31313149 31313131 49313131 31312222 |111I1111I11111""|
; CHECK-NEXT: 00B0: 225C5C5C 61006200 00630000 00640061 |"\\\a.b..c...d.a|
; CHECK-NEXT: 00C0: 006200 |.b.|
; CHECK-NEXT: )
; CHECK-DAG: Resource type (string): USERDEFINED
; CHECK-NEXT: Resource name (int): 501
; CHECK-NEXT: Data version: 0
; CHECK-NEXT: Memory flags: 0x30
; CHECK-NEXT: Language ID: 1033
; CHECK-NEXT: Version (major): 0
; CHECK-NEXT: Version (minor): 0
; CHECK-NEXT: Characteristics: 0
; CHECK-NEXT: Data size: 138
; CHECK-NEXT: Data: (
; CHECK-NEXT: 0000: 48006500 6C006C00 6F002100 08000A00 |H.e.l.l.o.!.....|
; CHECK-NEXT: 0010: 0D000900 00000800 09000000 00000100 |................|
; CHECK-NEXT: 0020: 12002301 34123412 35000000 01001200 |..#.4.4.5.......|
; CHECK-NEXT: 0030: 23013412 34123500 01006700 00000100 |#.4.4.5...g.....|
; CHECK-NEXT: 0040: 08004000 00020010 00800080 30000100 |[email protected]...|
; CHECK-NEXT: 0050: 09004900 49024912 49924992 49923100 |..I.I.I.I.I.I.1.|
; CHECK-NEXT: 0060: 22002200 22005C00 5C005C00 61000000 |".".".\.\.\.a...|
; CHECK-NEXT: 0070: 62000000 00006300 00000000 00006400 |b.....c.......d.|
; CHECK-NEXT: 0080: 00006100 00006200 0000 |..a...b...|
; CHECK-NEXT: )
; CHECK-DAG: Resource type (int): STRINGTABLE (ID 6)
; CHECK-NEXT: Resource name (int): 1
; CHECK-NEXT: Data version: 0
; CHECK-NEXT: Memory flags: 0x1030
; CHECK-NEXT: Language ID: 1033
; CHECK-NEXT: Version (major): 0
; CHECK-NEXT: Version (minor): 0
; CHECK-NEXT: Characteristics: 0
; CHECK-NEXT: Data size: 404
; CHECK-NEXT: Data: (
; CHECK-NEXT: 0000: 06004800 65006C00 6C006F00 21002F00 |..H.e.l.l.o.!./.|
; CHECK-NEXT: 0010: 08005C00 62005C00 63005C00 64005C00 |..\.b.\.c.\.d.\.|
; CHECK-NEXT: 0020: 65005C00 66005C00 67005C00 68005C00 |e.\.f.\.g.\.h.\.|
; CHECK-NEXT: 0030: 69005C00 6A005C00 6B005C00 6C005C00 |i.\.j.\.k.\.l.\.|
; CHECK-NEXT: 0040: 6D000A00 5C006F00 5C007000 5C007100 |m...\.o.\.p.\.q.|
; CHECK-NEXT: 0050: 0D005C00 73000900 5C007500 5C007600 |..\.s...\.u.\.v.|
; CHECK-NEXT: 0060: 5C007700 00005C00 79005C00 7A003100 |\.w...\.y.\.z.1.|
; CHECK-NEXT: 0070: 08005C00 42005C00 43005C00 44005C00 |..\.B.\.C.\.D.\.|
; CHECK-NEXT: 0080: 45005C00 46005C00 47005C00 48005C00 |E.\.F.\.G.\.H.\.|
; CHECK-NEXT: 0090: 49005C00 4A005C00 4B005C00 4C005C00 |I.\.J.\.K.\.L.\.|
; CHECK-NEXT: 00A0: 4D005C00 4E005C00 4F005C00 50005C00 |M.\.N.\.O.\.P.\.|
; CHECK-NEXT: 00B0: 51005C00 52005C00 53000900 5C005500 |Q.\.R.\.S...\.U.|
; CHECK-NEXT: 00C0: 5C005600 5C005700 00005C00 59005C00 |\.V.\.W...\.Y.\.|
; CHECK-NEXT: 00D0: 5A001A00 00000100 12001200 33001200 |Z...........3...|
; CHECK-NEXT: 00E0: 33003400 12003300 34003500 00000100 |3.4...3.4.5.....|
; CHECK-NEXT: 00F0: 12001200 33001200 33003400 12003300 |....3...3.4...3.|
; CHECK-NEXT: 0100: 34003500 01006700 17000000 01000800 |4.5...g.........|
; CHECK-NEXT: 0110: 08003000 08003000 30000800 30003000 |..0...0.0...0.0.|
; CHECK-NEXT: 0120: 30000800 30003000 30003000 08003000 |0...0.0.0.0...0.|
; CHECK-NEXT: 0130: 30003000 30003000 17000100 09004900 |0.0.0.0.......I.|
; CHECK-NEXT: 0140: 49003100 49003100 31004900 31003100 |I.1.I.1.1.I.1.1.|
; CHECK-NEXT: 0150: 31004900 31003100 31003100 49003100 |1.I.1.1.1.1.I.1.|
; CHECK-NEXT: 0160: 31003100 31003100 06002200 22002200 |1.1.1.1...".".".|
; CHECK-NEXT: 0170: 5C005C00 5C000300 61000000 62000300 |\.\.\...a...b...|
; CHECK-NEXT: 0180: 61000000 62000000 00000000 00000000 |a...b...........|
; CHECK-NEXT: 0190: 00000000 |....|
; CHECK-NEXT: )
; CHECK-DAG: Resource type (int): STRINGTABLE (ID 6)
; CHECK-NEXT: Resource name (int): 2
; CHECK-NEXT: Data version: 0
; CHECK-NEXT: Memory flags: 0x1030
; CHECK-NEXT: Language ID: 1033
; CHECK-NEXT: Version (major): 0
; CHECK-NEXT: Version (minor): 0
; CHECK-NEXT: Characteristics: 0
; CHECK-NEXT: Data size: 148
; CHECK-NEXT: Data: (
; CHECK-NEXT: 0000: 00000000 00000000 06004800 65006C00 |..........H.e.l.|
; CHECK-NEXT: 0010: 6C006F00 21000400 08000A00 0D000900 |l.o.!...........|
; CHECK-NEXT: 0020: 02000800 09001000 00000100 12002301 |..............#.|
; CHECK-NEXT: 0030: 34123412 35000000 01001200 23013412 |4.4.5.......#.4.|
; CHECK-NEXT: 0040: 34123500 01006700 09000000 01000800 |4.5...g.........|
; CHECK-NEXT: 0050: 40000002 00100080 00803000 09000100 |@.........0.....|
; CHECK-NEXT: 0060: 09004900 49024912 49924992 49923100 |..I.I.I.I.I.I.1.|
; CHECK-NEXT: 0070: 06002200 22002200 5C005C00 5C000300 |..".".".\.\.\...|
; CHECK-NEXT: 0080: 61000000 62000300 61000000 62000000 |a...b...a...b...|
; CHECK-NEXT: 0090: 00000000 |....|
; CHECK-NEXT: )
|