[llvm] r338066 - Add missing tests from ms-mangle.cpp.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 26 13:20:29 PDT 2018
Author: zturner
Date: Thu Jul 26 13:20:29 2018
New Revision: 338066
URL: http://llvm.org/viewvc/llvm-project?rev=338066&view=rev
Log:
Add missing tests from ms-mangle.cpp.
None of these tests pass yet so they are commented out, but I'm
adding them with a FIXME label so that they don't get lost when
copying tests over from clang's mangling tests. Currently these
tests are all commented out.
Modified:
llvm/trunk/test/Demangle/ms-mangle.test
Modified: llvm/trunk/test/Demangle/ms-mangle.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Demangle/ms-mangle.test?rev=338066&r1=338065&r2=338066&view=diff
==============================================================================
--- llvm/trunk/test/Demangle/ms-mangle.test (original)
+++ llvm/trunk/test/Demangle/ms-mangle.test Thu Jul 26 13:20:29 2018
@@ -12,6 +12,10 @@
?anonymous@?A at N@@3HA
; CHECK: int N::`anonymous namespace'::anonymous
+; FIXME: Reference Temporaries
+; ?$RT1 at NeedsReferenceTemporary@@3ABHB
+; ?$RT1 at NeedsReferenceTemporary@@3AEBHEB
+
?_c@@YAHXZ
; CHECK: int __cdecl _c(void)
@@ -149,6 +153,13 @@
?zeta@@YAXP6AHHH at Z@Z
; CHECK: void __cdecl zeta(int __cdecl (*)(int, int))
+; FIXME: We don't support blocks yet.
+
+; ?eta@@YAXP_EAHHH at Z@Z
+; FIXME: void eta(int (^)(int, int))
+; ?theta@@YAXP_EAHHH at Z@Z
+; FIXME: void theta(int(int,int)^ block)
+
??2 at YAPAXI@Z
; CHECK: void * __cdecl operator new(unsigned int)
@@ -254,12 +265,18 @@
?s6 at PR13182@@3PBQBDB
; CHECK: char const *const *PR13182::s6
-; FIXME-EXTERNC: We don't properly support static locals in extern c functions yet.
+; FIXME: We don't properly support static locals in functions yet.
; ?local@?1??extern_c_func@@9 at 4HA
-; FIXME-EXTERNC: int `extern_c_func'::`2'::local
+; FIXME: int `extern_c_func'::`2'::local
; ?local@?1??extern_c_func@@9 at 4HA
-; FIXME-EXTERNC: int `extern_c_func'::`2'::local
+; FIXME: int `extern_c_func'::`2'::local
+
+; ?v@?1??f@@YAHXZ at 4U<unnamed-type-v>@?1??1 at YAHXZ@A
+; FIXME: struct `int __cdecl f(void)'::`2'::<unnamed-type-v> `int __cdecl f(void)'::`2'::v
+
+; ?v@?1???$f at H@@YAHXZ at 4U<unnamed-type-v>@?1???$f at H@@YAHXZ at A
+; FIXME: struct `int __cdecl f<int>(void)'::`2'::<unnamed-type-v> `int __cdecl f<int>(void)'::`2'::v
??2OverloadedNewDelete@@SAPAXI at Z
; CHECK: static void * __cdecl OverloadedNewDelete::operator new(unsigned int)
@@ -311,13 +328,15 @@
?vector_func@@YQXXZ
; CHECK: void __vectorcall vector_func(void)
-; FIXME-EXTERNC: We don't support extern C funcs currently.
+; FIXME: We don't support extern C funcs currently.
; ??$fn_tmpl@$1?extern_c_func@@YAXXZ@@YAXXZ
-; FIXME-EXTERNC: void __cdecl fn_tmpl<&void __cdecl extern_c_func(void)>(void)
+; FIXME: void __cdecl fn_tmpl<&void __cdecl extern_c_func(void)>(void)
; ?overloaded_fn@@$$J0YAXXZ
; FIXME-EXTERNC: extern \"C\" void __cdecl overloaded_fn(void)
+; ?f at UnnamedType@@YAXQAPAU<unnamed-type-T1>@S at 1@@Z
+; FIXME: void __cdecl UnnamedType::f(struct UnnamedType::S::<unnamed-type-T1> ** const)
?f at UnnamedType@@YAXUT2 at S@1@@Z
; CHECK: void __cdecl UnnamedType::f(struct UnnamedType::S::T2)
@@ -340,6 +359,18 @@
?f at UnnamedType@@YAXUT5 at S@1@@Z
; CHECK: void __cdecl UnnamedType::f(struct UnnamedType::S::T5)
+
+; ?foo at PassObjectSize@@YAHQAHW4__pass_object_size0 at __clang@@@Z
+; FIXME: int foo(int *const i __attribute__((pass_object_size(0))));
+; ?bar at PassObjectSize@@YAHQAHW4__pass_object_size1 at __clang@@@Z
+; FIXME: int bar(int *const i __attribute__((pass_object_size(1))));
+; ?qux at PassObjectSize@@YAHQAHW4__pass_object_size1 at __clang@@0W4__pass_object_size0 at 3@@Z
+; FIXME: int qux(int *const i __attribute__((pass_object_size(1))), int *const j __attribute__((pass_object_size(0))));
+; ?zot at PassObjectSize@@YAHQAHW4__pass_object_size1 at __clang@@01 at Z
+; FIXME: int zot(int *const i __attribute__((pass_object_size(1))), int *const j __attribute__((pass_object_size(1))));
+
+
+
?f at Atomic@@YAXU?$_Atomic at H@__clang@@@Z
; CHECK: void __cdecl Atomic::f(struct __clang::_Atomic<int>)
More information about the llvm-commits
mailing list