diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
| commit | 06d4ba388873e6d1cfa9cd715a8935ecc8cd2097 (patch) | |
| tree | 3eb853da77d46cc77c4b017525a422f9ddb1385b /test/CodeGenCXX/mangle-ms-templates.cpp | |
| parent | 30d791273d07fac9c0c1641a0731191bca6e8606 (diff) | |
Notes
Diffstat (limited to 'test/CodeGenCXX/mangle-ms-templates.cpp')
| -rw-r--r-- | test/CodeGenCXX/mangle-ms-templates.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGenCXX/mangle-ms-templates.cpp b/test/CodeGenCXX/mangle-ms-templates.cpp index 31fda2046c4b..46ab251af14f 100644 --- a/test/CodeGenCXX/mangle-ms-templates.cpp +++ b/test/CodeGenCXX/mangle-ms-templates.cpp @@ -24,6 +24,12 @@ class IntTemplate { IntTemplate() {} }; +template<unsigned param> +class UnsignedIntTemplate { +public: + UnsignedIntTemplate() {} +}; + template<long long param> class LongLongTemplate { public: @@ -133,6 +139,10 @@ void template_mangling() { IntTemplate<-11> neg_11; // CHECK: call {{.*}} @"\01??0?$IntTemplate@$0?L@@@QAE@XZ" // X64: call {{.*}} @"\01??0?$IntTemplate@$0?L@@@QEAA@XZ" + + UnsignedIntTemplate<4294967295> ffffffff; +// CHECK: call {{.*}} @"\01??0?$UnsignedIntTemplate@$0PPPPPPPP@@@QAE@XZ" +// X64: call {{.*}} @"\01??0?$UnsignedIntTemplate@$0PPPPPPPP@@@QEAA@XZ" LongLongTemplate<-9223372036854775807LL-1LL> int64_min; // CHECK: call {{.*}} @"\01??0?$LongLongTemplate@$0?IAAAAAAAAAAAAAAA@@@QAE@XZ" |
