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