diff options
Diffstat (limited to 'test/CodeGenCXX/mangle-ms.cpp')
-rw-r--r-- | test/CodeGenCXX/mangle-ms.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGenCXX/mangle-ms.cpp b/test/CodeGenCXX/mangle-ms.cpp index 662278b3034f..0da5c6f1f8df 100644 --- a/test/CodeGenCXX/mangle-ms.cpp +++ b/test/CodeGenCXX/mangle-ms.cpp @@ -380,3 +380,12 @@ void TypedefNewDelete::operator delete[](void *) { } void __vectorcall vector_func() { } // CHECK-DAG: @"\01?vector_func@@YQXXZ" + +template <void (*)(void)> +void fn_tmpl() {} + +template void fn_tmpl<extern_c_func>(); +// CHECK-DAG: @"\01??$fn_tmpl@$1?extern_c_func@@YAXXZ@@YAXXZ" + +extern "C" void __attribute__((overloadable)) overloaded_fn() {} +// CHECK-DAG: @"\01?overloaded_fn@@$$J0YAXXZ" |