diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-12-30 05:40:32 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-12-30 05:40:32 +0000 |
commit | 56e2adb6fdb8871a4edc21d34dabb56c9cb1359d (patch) | |
tree | d76ed0f80961445e47003c50714d621f9d03c2b0 /clang/test/CodeGenCXX/mangle-ms-cxx14.cpp | |
parent | 5f177620c3a5fe5626d55d0189a5fc7352e78ad6 (diff) | |
download | bcm5719-llvm-56e2adb6fdb8871a4edc21d34dabb56c9cb1359d.tar.gz bcm5719-llvm-56e2adb6fdb8871a4edc21d34dabb56c9cb1359d.zip |
[MS ABI] Add variable templates to the NameBackReferences
Only function template specializations are exempt from being added to
the NameBackReferences. Redundant variable template specializations
should be appropriately substituted.
llvm-svn: 256623
Diffstat (limited to 'clang/test/CodeGenCXX/mangle-ms-cxx14.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/mangle-ms-cxx14.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/mangle-ms-cxx14.cpp b/clang/test/CodeGenCXX/mangle-ms-cxx14.cpp index d649c59aed0..9d30c406c8c 100644 --- a/clang/test/CodeGenCXX/mangle-ms-cxx14.cpp +++ b/clang/test/CodeGenCXX/mangle-ms-cxx14.cpp @@ -49,3 +49,9 @@ int WithPMD = 0; template <> int WithPMD<nullptr>; // CHECK-DAG: "\01??$WithPMD@$GA@A@?0@@3HA" + +template <const int *, const int *> +struct Foo {}; + +Foo<&x<int>, &x<int>> Zoo; +// CHECK-DAG: "\01?Zoo@@3U?$Foo@$1??$x@H@@3HA$1?1@3HA@@A" |