URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// Test for mangling of template args in a typename type.
|
// Test for mangling of template args in a typename type.
|
|
|
struct A
|
struct A
|
{
|
{
|
template
|
template
|
struct B
|
struct B
|
{
|
{
|
typedef T myT;
|
typedef T myT;
|
};
|
};
|
};
|
};
|
|
|
struct C {};
|
struct C {};
|
|
|
template
|
template
|
void f (T t, typename T::template B::myT u, typename T::template B::myT v);
|
void f (T t, typename T::template B::myT u, typename T::template B::myT v);
|
|
|
int main()
|
int main()
|
{
|
{
|
f (A(), C(), 1);
|
f (A(), C(), 1);
|
}
|
}
|
|
|
// { dg-final { scan-assembler "_Z1fI1AEvT_NS1_1BI1CE3myTENS2_IiE3myTE" } }
|
// { dg-final { scan-assembler "_Z1fI1AEvT_NS1_1BI1CE3myTENS2_IiE3myTE" } }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.