mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 12:16:06 +00:00

We wouldn't recognize variable templates as being templates leading us to leave the template arguments off of the mangled name. This would allow two unrelated templates to map to the same mangled name. N.B. While MSVC doesn't support variable templates as of this date, this mangling is the most likely thing they will choose to use. Their demangler can successfully demangle our manglings with the template arguments shown. llvm-svn: 202789
9 lines
238 B
C++
9 lines
238 B
C++
// RUN: %clang_cc1 -std=c++1y -fms-extensions -emit-llvm %s -o - -triple=i386-pc-win32 | FileCheck %s
|
|
|
|
template <typename> int x = 0;
|
|
|
|
// CHECK: "\01??$x@X@@3HA"
|
|
template <> int x<void>;
|
|
// CHECK: "\01??$x@H@@3HA"
|
|
template <> int x<int>;
|