1 ; RUN: llvm-undname < %s | FileCheck %s
3 ; CHECK-NOT: Invalid mangled name
6 ; CHECK: __cdecl Base::Base(void)
9 ; CHECK: virtual __cdecl Base::~Base(void)
12 ; CHECK: void * __cdecl operator new(unsigned __int64)
15 ; CHECK: void __cdecl operator delete(void *, unsigned __int64)
18 ; CHECK: int __cdecl Base::operator=(int)
21 ; CHECK: int __cdecl Base::operator<<(int)
24 ; CHECK: int __cdecl Base::operator>>(int)
27 ; CHECK: int __cdecl Base::operator!(void)
30 ; CHECK: int __cdecl Base::operator==(int)
33 ; CHECK: int __cdecl Base::operator!=(int)
36 ; CHECK: int __cdecl Base::operator[](int)
39 ; CHECK: __cdecl Base::operator int(void)
42 ; CHECK: int __cdecl Base::operator->(void)
45 ; CHECK: int __cdecl Base::operator*(void)
48 ; CHECK: int __cdecl Base::operator++(void)
51 ; CHECK: int __cdecl Base::operator++(int)
54 ; CHECK: int __cdecl Base::operator--(void)
57 ; CHECK: int __cdecl Base::operator--(int)
60 ; CHECK: int __cdecl Base::operator-(int)
63 ; CHECK: int __cdecl Base::operator+(int)
66 ; CHECK: int __cdecl Base::operator&(int)
69 ; CHECK: int __cdecl Base::operator->*(int)
72 ; CHECK: int __cdecl Base::operator/(int)
75 ; CHECK: int __cdecl Base::operator%(int)
78 ; CHECK: int __cdecl Base::operator<(int)
81 ; CHECK: int __cdecl Base::operator<=(int)
84 ; CHECK: int __cdecl Base::operator>(int)
87 ; CHECK: int __cdecl Base::operator>=(int)
90 ; CHECK: int __cdecl Base::operator,(int)
93 ; CHECK: int __cdecl Base::operator()(void)
96 ; CHECK: int __cdecl Base::operator~(void)
99 ; CHECK: int __cdecl Base::operator^(int)
102 ; CHECK: int __cdecl Base::operator|(int)
105 ; CHECK: int __cdecl Base::operator&&(int)
108 ; CHECK: int __cdecl Base::operator||(int)
111 ; CHECK: int __cdecl Base::operator*=(int)
114 ; CHECK: int __cdecl Base::operator+=(int)
117 ; CHECK: int __cdecl Base::operator-=(int)
120 ; CHECK: int __cdecl Base::operator/=(int)
123 ; CHECK: int __cdecl Base::operator%=(int)
126 ; CHECK: int __cdecl Base::operator>>=(int)
129 ; CHECK: int __cdecl Base::operator<<=(int)
132 ; CHECK: int __cdecl Base::operator&=(int)
135 ; CHECK: int __cdecl Base::operator|=(int)
138 ; CHECK: int __cdecl Base::operator^=(int)
141 ; CHECK: const Base::`vftable'
144 ; CHECK: const B::A::`vftable'{for `D::C'}
147 ; CHECK: const Middle2::`vbtable'
150 ; CHECK: [thunk]: __cdecl Base::`vcall'{8, {flat}}
152 ??_B?1??getS@@YAAAUS@@XZ@51
153 ; CHECK: `struct S & __cdecl getS(void)'::`2'::`local static guard'{2}
155 ??_C@_02PCEFGMJL@hi?$AA@
159 ; CHECK: void __cdecl Diamond::`vbase dtor'(void)
161 ??_EBase@@UEAAPEAXI@Z
162 ; CHECK: virtual void * __cdecl Base::`vector deleting dtor'(unsigned int)
165 ; CHECK: [thunk]: private: void * __thiscall Base::`vector deleting dtor'`adjustor{4}'(unsigned int)
167 ??_F?$SomeTemplate@H@@QAEXXZ
168 ; CHECK: void __thiscall SomeTemplate<int>::`default ctor closure'(void)
170 ??_GBase@@UEAAPEAXI@Z
171 ; CHECK: virtual void * __cdecl Base::`scalar deleting dtor'(unsigned int)
173 ??_H@YAXPEAX_K1P6APEAX0@Z@Z
174 ; CHECK: void __cdecl `vector ctor iterator'(void *, unsigned __int64, unsigned __int64, void * (__cdecl *)(void *))
176 ??_I@YAXPEAX_K1P6AX0@Z@Z
177 ; CHECK: void __cdecl `vector dtor iterator'(void *, unsigned __int64, unsigned __int64, void (__cdecl *)(void *))
179 ??_JBase@@UEAAPEAXI@Z
180 ; CHECK: virtual void * __cdecl Base::`vector vbase ctor iterator'(unsigned int)
182 ??_KBase@@UEAAPEAXI@Z
183 ; CHECK: virtual void * __cdecl Base::`virtual displacement map'(unsigned int)
185 ??_LBase@@UEAAPEAXI@Z
186 ; CHECK: virtual void * __cdecl Base::`eh vector ctor iterator'(unsigned int)
188 ??_MBase@@UEAAPEAXI@Z
189 ; CHECK: virtual void * __cdecl Base::`eh vector dtor iterator'(unsigned int)
191 ??_NBase@@UEAAPEAXI@Z
192 ; CHECK: virtual void * __cdecl Base::`eh vector vbase ctor iterator'(unsigned int)
194 ??_O?$SomeTemplate@H@@QAEXXZ
195 ; CHECK: void __thiscall SomeTemplate<int>::`copy ctor closure'(void)
198 ; CHECK: const Base::`local vftable'
201 ; CHECK: void __cdecl Derived::`local vftable ctor closure'(void)
203 ??_U@YAPEAX_KAEAVklass@@@Z
204 ; CHECK: void * __cdecl operator new[](unsigned __int64, class klass &)
206 ??_V@YAXPEAXAEAVklass@@@Z
207 ; CHECK: void __cdecl operator delete[](void *, class klass &)
210 ; CHECK: struct Base `RTTI Type Descriptor'
213 ; CHECK: struct Base `RTTI Type Descriptor Name'
215 ??_R1A@?0A@EA@Base@@8
216 ; CHECK: Base::`RTTI Base Class Descriptor at (0, -1, 0, 64)'
219 ; CHECK: Base::`RTTI Base Class Array'
222 ; CHECK: Base::`RTTI Class Hierarchy Descriptor'
225 ; CHECK: const Base::`RTTI Complete Object Locator'
227 ; Generated for `int Foo = f(4);` at global scope.
229 ; CHECK: void __cdecl `dynamic initializer for 'Foo''(void)
232 ; class C { static int i; };
234 ??__E?i@C@@0HA@@YAXXZ
235 ; CHECK: void __cdecl `dynamic initializer for `private: static int C::i''(void)
238 ; CHECK: void __cdecl `dynamic atexit destructor for 'Foo''(void)
240 ??__F_decisionToDFA@XPathLexer@@0V?$vector@VDFA@dfa@antlr4@@V?$allocator@VDFA@dfa@antlr4@@@std@@@std@@A@YAXXZ
241 ; CHECK: void __cdecl `dynamic atexit destructor for `private: static class std::vector<class antlr4::dfa::DFA, class std::allocator<class antlr4::dfa::DFA>> XPathLexer::_decisionToDFA''(void)
243 ??__J?1??f@@YAAAUS@@XZ@51
244 ; CHECK: `struct S & __cdecl f(void)'::`2'::`local static thread guard'{2}
247 ; CHECK: int __cdecl operator ""_deg(long double)