diff options
author | Nico Weber <nicolasweber@gmx.de> | 2012-11-08 23:38:59 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2012-11-08 23:38:59 +0000 |
commit | 7d37f05a4447c83f29876a6e3515250cafe13c0e (patch) | |
tree | b9021c9ac94c52a84787ff5177ca751fcd7e1e08 /clang/test/CodeGenCXX/mangle-ms-templates.cpp | |
parent | a2d228b57002137aaf556d1ee319d2255a9b5c76 (diff) | |
download | bcm5719-llvm-7d37f05a4447c83f29876a6e3515250cafe13c0e.tar.gz bcm5719-llvm-7d37f05a4447c83f29876a6e3515250cafe13c0e.zip |
[Windows] Fix mangling of number literal '0'
Do this by making the mangleNumber(APSInt) overload look like
the int64_t version. (The latter should probably just delegate
to the former).
Test from Evgeny Eltsin!
llvm-svn: 167599
Diffstat (limited to 'clang/test/CodeGenCXX/mangle-ms-templates.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/mangle-ms-templates.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/mangle-ms-templates.cpp b/clang/test/CodeGenCXX/mangle-ms-templates.cpp index efe9565d332..e16fe936bc2 100644 --- a/clang/test/CodeGenCXX/mangle-ms-templates.cpp +++ b/clang/test/CodeGenCXX/mangle-ms-templates.cpp @@ -48,6 +48,9 @@ void template_mangling() { // CHECK: call {{.*}} @"\01??0?$BoolTemplate@$00@@QAE@XZ" // CHECK: call {{.*}} @"\01??$Foo@H@?$BoolTemplate@$00@@QAEXH@Z" + IntTemplate<0> zero; +// CHECK: call {{.*}} @"\01??0?$IntTemplate@$0A@@@QAE@XZ" + IntTemplate<5> five; // CHECK: call {{.*}} @"\01??0?$IntTemplate@$04@@QAE@XZ" |