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++.dg/] [debug/] [debug2.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
/* Verify that sched re-inserts needed scopes properly.  */
/* Verify that sched re-inserts needed scopes properly.  */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-mcpu=ev5" { target alpha*-*-* } } */
/* { dg-options "-mcpu=ev5" { target alpha*-*-* } } */
template 
template 
inline void foo()
inline void foo()
{
{
  void (T::*x)() __attribute__ ((__unused__)) = &T::bar;
  void (T::*x)() __attribute__ ((__unused__)) = &T::bar;
}
}
template 
template 
struct D
struct D
{
{
  void bar() {
  void bar() {
  }
  }
  T i;
  T i;
};
};
template 
template 
struct E
struct E
{
{
  void bar() {
  void bar() {
    foo  > ();
    foo  > ();
    *i-- = *i;
    *i-- = *i;
  }
  }
  T i;
  T i;
};
};
struct A {};
struct A {};
template struct B { typedef typename T::t t; };
template struct B { typedef typename T::t t; };
template struct B { typedef T& t; };
template struct B { typedef T& t; };
template
template
struct C
struct C
{
{
  T b;
  T b;
  explicit C (const T& i) : b (i) { }
  explicit C (const T& i) : b (i) { }
  typename B::t operator* () const { return *b; }
  typename B::t operator* () const { return *b; }
  C operator-- (int) { return C (b--); }
  C operator-- (int) { return C (b--); }
};
};
template void foo  > > ();
template void foo  > > ();
template void foo  > > ();
template void foo  > > ();
 
 

powered by: WebSVN 2.1.0

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