URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
bool foo0(int) { return true; }
|
bool foo0(int) { return true; }
|
|
|
bool foo1();
|
bool foo1();
|
|
|
struct A
|
struct A
|
{
|
{
|
A();
|
A();
|
~A();
|
~A();
|
|
|
template void bar1(T f)
|
template void bar1(T f)
|
{
|
{
|
if (f(0))
|
if (f(0))
|
foo1();
|
foo1();
|
}
|
}
|
|
|
template void bar2(T);
|
template void bar2(T);
|
};
|
};
|
|
|
template void A::bar2(T f)
|
template void A::bar2(T f)
|
{
|
{
|
A a, b[1], *p;
|
A a, b[1], *p;
|
|
|
while (foo1())
|
while (foo1())
|
{
|
{
|
if (p)
|
if (p)
|
++p;
|
++p;
|
if (p && foo1())
|
if (p && foo1())
|
bar1(f);
|
bar1(f);
|
if (p)
|
if (p)
|
++p;
|
++p;
|
}
|
}
|
|
|
if (foo1())
|
if (foo1())
|
bar1(f);
|
bar1(f);
|
}
|
}
|
|
|
void baz()
|
void baz()
|
{
|
{
|
A().bar2(foo0);
|
A().bar2(foo0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.