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.0rc4/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [typename19.C] - Diff between revs 305 and 519

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

Rev 305 Rev 519
// { dg-do run  }
// { dg-do run  }
// { dg-options "" }
// { dg-options "" }
// Origin: Mark Mitchell 
// Origin: Mark Mitchell 
template 
template 
struct O {
struct O {
  typedef char X;
  typedef char X;
};
};
template 
template 
struct S {
struct S {
  typedef double X;
  typedef double X;
  template 
  template 
  struct I : public O {
  struct I : public O {
    static X x;
    static X x;
  };
  };
};
};
template 
template 
template 
template 
typename S::X S::I::x;
typename S::X S::I::x;
int main()
int main()
{
{
  return sizeof (S::I::x) == 1;
  return sizeof (S::I::x) == 1;
}
}
 
 

powered by: WebSVN 2.1.0

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