URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// { dg-do assemble }
|
// { dg-do assemble }
|
|
|
// Copyright (C) 2000 Free Software Foundation
|
// Copyright (C) 2000 Free Software Foundation
|
// Contributed by Kriang Lerdsuwanakij
|
// Contributed by Kriang Lerdsuwanakij
|
|
|
// Bug: We used reject template unification of two bound template template
|
// Bug: We used reject template unification of two bound template template
|
// parameters.
|
// parameters.
|
|
|
template class C
|
template class C
|
{
|
{
|
};
|
};
|
|
|
template void f(C c)
|
template void f(C c)
|
{
|
{
|
}
|
}
|
|
|
template void f(C c)
|
template void f(C c)
|
{
|
{
|
}
|
}
|
|
|
template class C, class T, class U>
|
template class C, class T, class U>
|
void g(C c)
|
void g(C c)
|
{
|
{
|
}
|
}
|
|
|
template class C, class T> void g(C c)
|
template class C, class T> void g(C c)
|
{
|
{
|
}
|
}
|
|
|
int main()
|
int main()
|
{
|
{
|
C c1;
|
C c1;
|
f(c1);
|
f(c1);
|
g(c1);
|
g(c1);
|
C c2;
|
C c2;
|
f(c2);
|
f(c2);
|
g(c2);
|
g(c2);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.