OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [abi/] [mangle30.C] - Diff between revs 301 and 338

Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 338
// Test for mangling of template args in a typename type.
// Test for mangling of template args in a typename type.
struct A
struct A
{
{
  template 
  template 
  struct B
  struct B
  {
  {
    typedef T myT;
    typedef T myT;
  };
  };
};
};
struct C {};
struct C {};
template 
template 
void f (T t, typename T::template B::myT u, typename T::template B::myT v);
void f (T t, typename T::template B::myT u, typename T::template B::myT v);
int main()
int main()
{
{
  f (A(), C(), 1);
  f (A(), C(), 1);
}
}
// { dg-final { scan-assembler "_Z1fI1AEvT_NS1_1BI1CE3myTENS2_IiE3myTE" } }
// { dg-final { scan-assembler "_Z1fI1AEvT_NS1_1BI1CE3myTENS2_IiE3myTE" } }
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.