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 |
// { dg-do run }
|
// { dg-do run }
|
template
|
template
|
void f(T t);
|
void f(T t);
|
|
|
template
|
template
|
void f(T* t);
|
void f(T* t);
|
|
|
template <>
|
template <>
|
void f(int* ip) {}
|
void f(int* ip) {}
|
|
|
struct S1
|
struct S1
|
{
|
{
|
template
|
template
|
void f(T t);
|
void f(T t);
|
|
|
template
|
template
|
void f(T* t);
|
void f(T* t);
|
};
|
};
|
|
|
template <>
|
template <>
|
void S1::f(int* ip) {}
|
void S1::f(int* ip) {}
|
|
|
template
|
template
|
struct S2
|
struct S2
|
{
|
{
|
template
|
template
|
void f(T t);
|
void f(T t);
|
|
|
template
|
template
|
void f(T* t);
|
void f(T* t);
|
};
|
};
|
|
|
template <>
|
template <>
|
template <>
|
template <>
|
void S2::f(int* ip) {}
|
void S2::f(int* ip) {}
|
|
|
int main()
|
int main()
|
{
|
{
|
int* ip;
|
int* ip;
|
S1 s1;
|
S1 s1;
|
s1.f(ip);
|
s1.f(ip);
|
S2 s2;
|
S2 s2;
|
s2.f(ip);
|
s2.f(ip);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.