[cfe-commits] r157552 - /cfe/trunk/test/CodeGenCXX/mangle-ms-templates.cpp
Charles Davis
cdavis at mymail.mines.edu
Mon May 28 09:54:56 PDT 2012
Should be fixed in r157583.
Chip
On May 28, 2012, at 3:43 AM, Timur Iskhodzhanov wrote:
> IntTemplate<5> still crashes!
>
> On Mon, May 28, 2012 at 4:43 AM, Charles Davis <cdavis at mines.edu> wrote:
>> Author: cdavis
>> Date: Sun May 27 19:43:56 2012
>> New Revision: 157552
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=157552&view=rev
>> Log:
>> Test case for 157547. Before that patch, all the digits would be mangled
>> as zeroes. Now the digits are properly non-zero.
>>
>> Modified:
>> cfe/trunk/test/CodeGenCXX/mangle-ms-templates.cpp
>>
>> Modified: cfe/trunk/test/CodeGenCXX/mangle-ms-templates.cpp
>> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/mangle-ms-templates.cpp?rev=157552&r1=157551&r2=157552&view=diff
>> ==============================================================================
>> --- cfe/trunk/test/CodeGenCXX/mangle-ms-templates.cpp (original)
>> +++ cfe/trunk/test/CodeGenCXX/mangle-ms-templates.cpp Sun May 27 19:43:56 2012
>> @@ -17,6 +17,12 @@
>> BoolTemplate() {}
>> };
>>
>> +template<int param>
>> +class IntTemplate {
>> + public:
>> + IntTemplate() {}
>> +};
>> +
>> void template_mangling() {
>> Class<Typename> c1;
>> c1.method();
>> @@ -31,6 +37,12 @@
>>
>> BoolTemplate<true> _true;
>> // CHECK: call {{.*}} @"\01??0?$BoolTemplate@$00@@QAE at XZ"
>> +
>> + IntTemplate<11> eleven;
>> +// CHECK: call {{.*}} @"\01??0?$IntTemplate@$0L@@@QAE at XZ"
>> +
>> + IntTemplate<65535> ffff;
>> +// CHECK: call {{.*}} @"\01??0?$IntTemplate@$0PPPP@@@QAE at XZ"
>> }
>>
>> namespace space {
>>
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list