URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [sizeof3.C] - Rev 305
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// Adapted from testcase by Oskar Enoksson <osken393@student.liu.se>
extern "C" void abort();
template<class T0>
class A {
public:
typedef T0 T;
};
template<int K>
class B {
typedef A<char[K]> BC;
};
template<int N, int M>
class C {
public:
typedef A<char[M]> AC;
};
int main() {
if (sizeof(C<3,7>::AC::T) != 7)
abort();
}
Go to most recent revision | Compare with Previous | Blame | View Log