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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [nested1.C] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// { dg-do assemble  }
// { dg-do assemble  }
template 
template 
struct X
struct X
{
{
  T1 a;
  T1 a;
  struct Y
  struct Y
  {
  {
    T2 x;
    T2 x;
    Y (T2 _x) { x=_x; }
    Y (T2 _x) { x=_x; }
  };
  };
};
};
template 
template 
struct X
struct X
{
{
  T1 a;
  T1 a;
  struct Y
  struct Y
  {
  {
    int x;
    int x;
    Y (int _x) { x=_x; }
    Y (int _x) { x=_x; }
  };
  };
};
};
template <>
template <>
struct X
struct X
{
{
  int a;
  int a;
  struct Y
  struct Y
  {
  {
    int x;
    int x;
    Y (int _x) { x=_x; }
    Y (int _x) { x=_x; }
  };
  };
};
};
void f ()
void f ()
{
{
  X t1;
  X t1;
  X t2;
  X t2;
  X t3;
  X t3;
}
}
 
 

powered by: WebSVN 2.1.0

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