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 | 749025fc2c30d2fcc131de1092a04147d55764ff (patch) | |
tree | a6cb8b7c4284b9e1c255add0bf1b0f10af88f3f6 /test/CodeGenCXX/mangle-ms-cxx11.cpp | |
parent | cdecc265d4209ab7371d63e308ae4793f8f95c21 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@232609 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle-ms-cxx11.cpp')
-rw-r--r-- | test/CodeGenCXX/mangle-ms-cxx11.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/CodeGenCXX/mangle-ms-cxx11.cpp b/test/CodeGenCXX/mangle-ms-cxx11.cpp index fe7121ef24..fde6f27498 100644 --- a/test/CodeGenCXX/mangle-ms-cxx11.cpp +++ b/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> |