URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// PR c++/15629
|
// PR c++/15629
|
// { dg-do link }
|
// { dg-do link }
|
|
|
template class T;
|
template class T;
|
|
|
template void func(T * t);
|
template void func(T * t);
|
template void func(T * t) {}
|
template void func(T * t) {}
|
template void func<2>(T<2, 3>*);
|
template void func<2>(T<2, 3>*);
|
|
|
template struct T {
|
template struct T {
|
friend void func(T * t);
|
friend void func(T * t);
|
friend void func (T * t);
|
friend void func (T * t);
|
|
|
void foo();
|
void foo();
|
};
|
};
|
|
|
template void T::foo() {
|
template void T::foo() {
|
func((T<2,3>*)0);
|
func((T<2,3>*)0);
|
}
|
}
|
|
|
int main() {
|
int main() {
|
T<2,3>().foo();
|
T<2,3>().foo();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.