summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/mangle-ms-cxx14.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-12-30 05:40:32 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-12-30 05:40:32 +0000
commit56e2adb6fdb8871a4edc21d34dabb56c9cb1359d (patch)
treed76ed0f80961445e47003c50714d621f9d03c2b0 /clang/test/CodeGenCXX/mangle-ms-cxx14.cpp
parent5f177620c3a5fe5626d55d0189a5fc7352e78ad6 (diff)
downloadbcm5719-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.cpp6
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"
OpenPOWER on IntegriCloud