URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 384 |
// { dg-do run }
|
// { dg-do run }
|
extern "C" void abort ();
|
extern "C" void abort ();
|
|
|
template void f ();
|
template void f ();
|
template void g ()
|
template void g ()
|
{
|
{
|
abort ();
|
abort ();
|
}
|
}
|
|
|
template <> void g ()
|
template <> void g ()
|
{
|
{
|
abort ();
|
abort ();
|
}
|
}
|
|
|
template class C
|
template class C
|
{
|
{
|
public:
|
public:
|
void ff () { f (0); }
|
void ff () { f (0); }
|
void gg () { g (1); }
|
void gg () { g (1); }
|
template void f () { abort(); }
|
template void f () { abort(); }
|
template void g () { abort(); }
|
template void g () { abort(); }
|
template void f (int) {}
|
template void f (int) {}
|
template void g (int) {}
|
template void g (int) {}
|
};
|
};
|
|
|
template void f ()
|
template void f ()
|
{
|
{
|
abort ();
|
abort ();
|
}
|
}
|
|
|
template <> void f ()
|
template <> void f ()
|
{
|
{
|
abort ();
|
abort ();
|
}
|
}
|
|
|
int main ()
|
int main ()
|
{
|
{
|
C c;
|
C c;
|
c.ff();
|
c.ff();
|
c.gg();
|
c.gg();
|
C d;
|
C d;
|
d.ff();
|
d.ff();
|
d.gg();
|
d.gg();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.