ms-basic.test
4.93 KB
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
; RUN: llvm-undname < %s | FileCheck %s
; CHECK-NOT: Invalid mangled name
?x@@3HA
; CHECK: int x
?x@@3PEAHEA
; CHECK: int *x
?x@@3PEAPEAHEA
; CHECK: int **x
?foo@@3Y123KA
; CHECK: unsigned long foo[3][4]
?x@@3PEAY02HEA
; CHECK: int (*x)[3]
?x@@3PEAY124HEA
; CHECK: int (*x)[3][5]
?x@@3PEAY02$$CBHEA
; CHECK: int const (*x)[3]
?x@@3PEAEEA
; CHECK: unsigned char *x
?y@@3PEAGEA
; CHECK: unsigned short *y
?z@@3PEAKEA
; CHECK: unsigned long *z
?x@@3PEAY1NKM@5HEA
; CHECK: int (*x)[3500][6]
?x@@YAXMH@Z
; CHECK: void __cdecl x(float, int)
?x@@YAXMHZZ
; CHECK: void __cdecl x(float, int, ...)
?x@@YAXZZ
; CHECK: void __cdecl x(...)
?x@@3P6AHMNH@ZEA
; CHECK: int (__cdecl *x)(float, double, int)
?x@@3P6AHP6AHM@ZN@ZEA
; CHECK: int (__cdecl *x)(int (__cdecl *)(float), double)
?x@@3P6AHP6AHM@Z0@ZEA
; CHECK: int (__cdecl *x)(int (__cdecl *)(float), int (__cdecl *)(float))
?x@ns@@3HA
; CHECK: int ns::x
; Microsoft's undname doesn't handle Q correctly or the multiple occurrences
; of the const modifier. So the results here differ, but ours are correct.
?x@@3PEAHEA
; CHECK: int *x
?x@@3PEBHEB
; CHECK: int const *x
?x@@3QEAHEA
; CHECK: int *const x
?x@@3QEBHEB
; CHECK: int const *const x
?x@@3AEBHEB
; CHECK: int const &x
?x@@3PEAUty@@EA
; CHECK: struct ty *x
?x@@3PEATty@@EA
; CHECK: union ty *x
?x@@3PEAVty@@EA
; CHECK: class ty *x
?x@@3PEAW4ty@@EA
; CHECK: enum ty *x
?x@@3PEAV?$tmpl@H@@EA
; CHECK: class tmpl<int> *x
?x@@3PEAU?$tmpl@H@@EA
; CHECK: struct tmpl<int> *x
?x@@3PEAT?$tmpl@H@@EA
; CHECK: union tmpl<int> *x
?instance@@3Vklass@@A
; CHECK: class klass instance
?instance$initializer$@@3P6AXXZEA
; CHECK: void (__cdecl *instance$initializer$)(void)
??0klass@@QEAA@XZ
; CHECK: __cdecl klass::klass(void)
??1klass@@QEAA@XZ
; CHECK: __cdecl klass::~klass(void)
?x@@YAHPEAVklass@@AEAV1@@Z
; CHECK: int __cdecl x(class klass *, class klass &)
?x@ns@@3PEAV?$klass@HH@1@EA
; CHECK: class ns::klass<int, int> *ns::x
?fn@?$klass@H@ns@@QEBAIXZ
; CHECK: unsigned int __cdecl ns::klass<int>::fn(void) const
??4klass@@QEAAAEBV0@AEBV0@@Z
; CHECK: class klass const & __cdecl klass::operator=(class klass const &)
??7klass@@QEAA_NXZ
; CHECK: bool __cdecl klass::operator!(void)
??8klass@@QEAA_NAEBV0@@Z
; CHECK: bool __cdecl klass::operator==(class klass const &)
??9klass@@QEAA_NAEBV0@@Z
; CHECK: bool __cdecl klass::operator!=(class klass const &)
??Aklass@@QEAAH_K@Z
; CHECK: int __cdecl klass::operator[](unsigned __int64)
??Cklass@@QEAAHXZ
; CHECK: int __cdecl klass::operator->(void)
??Dklass@@QEAAHXZ
; CHECK: int __cdecl klass::operator*(void)
??Eklass@@QEAAHXZ
; CHECK: int __cdecl klass::operator++(void)
??Eklass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator++(int)
??Fklass@@QEAAHXZ
; CHECK: int __cdecl klass::operator--(void)
??Fklass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator--(int)
??Hklass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator+(int)
??Gklass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator-(int)
??Iklass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator&(int)
??Jklass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator->*(int)
??Kklass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator/(int)
??Mklass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator<(int)
??Nklass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator<=(int)
??Oklass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator>(int)
??Pklass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator>=(int)
??Qklass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator,(int)
??Rklass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator()(int)
??Sklass@@QEAAHXZ
; CHECK: int __cdecl klass::operator~(void)
??Tklass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator^(int)
??Uklass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator|(int)
??Vklass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator&&(int)
??Wklass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator||(int)
??Xklass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator*=(int)
??Yklass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator+=(int)
??Zklass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator-=(int)
??_0klass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator/=(int)
??_1klass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator%=(int)
??_2klass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator>>=(int)
??_3klass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator<<=(int)
??_6klass@@QEAAHH@Z
; CHECK: int __cdecl klass::operator^=(int)
??6@YAAEBVklass@@AEBV0@H@Z
; CHECK: class klass const & __cdecl operator<<(class klass const &, int)
??5@YAAEBVklass@@AEBV0@_K@Z
; CHECK: class klass const & __cdecl operator>>(class klass const &, unsigned __int64)
??2@YAPEAX_KAEAVklass@@@Z
; CHECK: void * __cdecl operator new(unsigned __int64, class klass &)
??_U@YAPEAX_KAEAVklass@@@Z
; CHECK: void * __cdecl operator new[](unsigned __int64, class klass &)
??3@YAXPEAXAEAVklass@@@Z
; CHECK: void __cdecl operator delete(void *, class klass &)
??_V@YAXPEAXAEAVklass@@@Z
; CHECK: void __cdecl operator delete[](void *, class klass &)
?A@?A0x43583946@@3VB@@B
; CHECK: class B const `anonymous namespace'::A