diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-04-09 12:47:38 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-04-09 12:47:38 +0000 |
commit | 5fdaac15ec0396f4d41a63d94d2a54a4080f39c8 (patch) | |
tree | f6d2bfe58c91375f802833c42191067741e166ce /clang/test/CodeGenCXX/mangle-ms-templates.cpp | |
parent | 090301e0094d5e954a8c861ebf0d8e3c6860b0a4 (diff) | |
download | bcm5719-llvm-5fdaac15ec0396f4d41a63d94d2a54a4080f39c8.tar.gz bcm5719-llvm-5fdaac15ec0396f4d41a63d94d2a54a4080f39c8.zip |
[ms-cxxabi] Add "$$C" when mangling template arg QualTypes
Credit goes to Timur Iskhodzhanov for finding the problem and solution.
llvm-svn: 179093
Diffstat (limited to 'clang/test/CodeGenCXX/mangle-ms-templates.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/mangle-ms-templates.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/mangle-ms-templates.cpp b/clang/test/CodeGenCXX/mangle-ms-templates.cpp index d0e8af48884..7b7f30bb727 100644 --- a/clang/test/CodeGenCXX/mangle-ms-templates.cpp +++ b/clang/test/CodeGenCXX/mangle-ms-templates.cpp @@ -35,6 +35,18 @@ void template_mangling() { c1.method(); // CHECK: call {{.*}} @"\01?method@?$Class@VTypename@@@@QAEXXZ" + Class<const Typename> c1_const; + Class<volatile Typename> c1_volatile; + Class<const volatile Typename> c1_cv; + c1_const.method(); + c1_volatile.method(); + c1_cv.method(); +// Types with qualifiers have an extra $$C escape when used as template +// arguments. Not sure why. +// CHECK: call {{.*}} @"\01?method@?$Class@$$CBVTypename@@@@QAEXXZ" +// CHECK: call {{.*}} @"\01?method@?$Class@$$CCVTypename@@@@QAEXXZ" +// CHECK: call {{.*}} @"\01?method@?$Class@$$CDVTypename@@@@QAEXXZ" + Class<Nested<Typename> > c2; c2.method(); // CHECK: call {{.*}} @"\01?method@?$Class@V?$Nested@VTypename@@@@@@QAEXXZ" |