URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
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 > > ();
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.