diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-03-18 03:56:27 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-03-18 03:56:27 +0000 |
commit | 4deaac780c9e84aeb46fa9d4ce75870d95f6e436 (patch) | |
tree | 7a167da148cef1270caa027fa48b844c0a114a82 /clang/test/CodeGenCXX/mangle-ms-cxx11.cpp | |
parent | 2ae0a1eafc1133b00580656f107cc976d3cb422a (diff) | |
download | bcm5719-llvm-4deaac780c9e84aeb46fa9d4ce75870d95f6e436.tar.gz bcm5719-llvm-4deaac780c9e84aeb46fa9d4ce75870d95f6e436.zip |
MS ABI: Empty pack expansions had their mangling changed in 2013->2015
We used to support the 2013 mangling and changed it to the more
reasonable 2015 mangling. Let's make the mangling conditional on what
version of MSVC is targeted.
This fixes PR21888.
llvm-svn: 232609
Diffstat (limited to 'clang/test/CodeGenCXX/mangle-ms-cxx11.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/mangle-ms-cxx11.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/clang/test/CodeGenCXX/mangle-ms-cxx11.cpp b/clang/test/CodeGenCXX/mangle-ms-cxx11.cpp index fe7121ef24d..fde6f274980 100644 --- a/clang/test/CodeGenCXX/mangle-ms-cxx11.cpp +++ b/clang/test/CodeGenCXX/mangle-ms-cxx11.cpp @@ -1,4 +1,5 @@ -// RUN: %clang_cc1 -std=c++11 -fms-extensions -emit-llvm %s -o - -triple=i386-pc-win32 | FileCheck %s +// RUN: %clang_cc1 -std=c++11 -fms-extensions -emit-llvm %s -o - -triple=i386-pc-win32 -fms-compatibility-version=19.00 | FileCheck %s --check-prefix=CHECK --check-prefix=MSVC2015 +// RUN: %clang_cc1 -std=c++11 -fms-extensions -emit-llvm %s -o - -triple=i386-pc-win32 -fms-compatibility-version=18.00 | FileCheck %s --check-prefix=CHECK --check-prefix=MSVC2013 namespace FTypeWithQuals { template <typename T> @@ -218,13 +219,15 @@ template <typename...> void templ_fun_with_ty_pack() {} template void templ_fun_with_ty_pack<>(); -// CHECK-DAG: @"\01??$templ_fun_with_ty_pack@$$V@@YAXXZ" +// MSVC2013-DAG: @"\01??$templ_fun_with_ty_pack@$$$V@@YAXXZ" +// MSVC2015-DAG: @"\01??$templ_fun_with_ty_pack@$$V@@YAXXZ" template <template <class> class...> void templ_fun_with_templ_templ_pack() {} template void templ_fun_with_templ_templ_pack<>(); -// CHECK-DAG: @"\01??$templ_fun_with_templ_templ_pack@$$V@@YAXXZ" +// MSVC2013-DAG: @"\01??$templ_fun_with_templ_templ_pack@$$$V@@YAXXZ" +// MSVC2015-DAG: @"\01??$templ_fun_with_templ_templ_pack@$$V@@YAXXZ" namespace PR20047 { template <typename T> |