URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [mangle10.C] - Rev 305
Compare with Previous | Blame | View Log
// { dg-do assemble }
template<int T>
struct A {
char *a;
A (const char* x)
{
a = (char*) x;
}
};
template<int U, int V, class T>
struct B {
T a[V-U+1];
friend A<V-U+1> f (B const &x)
{
return A<V-U+1> ((char*) x.a);
}
};
const int a = 8;
typedef B<1,a,int> C;
struct D {
C x;
};