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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [array19.C] - Diff between revs 693 and 783

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

Rev 693 Rev 783
// PR c++/33553
// PR c++/33553
// { dg-do compile }
// { dg-do compile }
template  struct S { static const int sz = 2; };
template  struct S { static const int sz = 2; };
template  struct U { enum { sz = 2 }; };
template  struct U { enum { sz = 2 }; };
template 
template 
struct P
struct P
{
{
  template  void bar (int (&x)[S::sz]);
  template  void bar (int (&x)[S::sz]);
  template  void baz (int (&x)[U::sz]);
  template  void baz (int (&x)[U::sz]);
};
};
P p;
P p;
void
void
foo (void)
foo (void)
{
{
  int x[2];
  int x[2];
  p.bar (x);
  p.bar (x);
  p.baz (x);
  p.baz (x);
}
}
 
 

powered by: WebSVN 2.1.0

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