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 <[email protected]> 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@XZ" >> + >> + IntTemplate<11> eleven; >> +// CHECK: call {{.*}} @"\01??0?$IntTemplate@$0L@@@QAE@XZ" >> + >> + IntTemplate<65535> ffff; >> +// CHECK: call {{.*}} @"\01??0?$IntTemplate@$0PPPP@@@QAE@XZ" >> } >> >> namespace space { >> >> >> _______________________________________________ >> cfe-commits mailing list >> [email protected] >> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
