Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.pt / sizeof3.C
blobfb65a32c1b725f42fb6a546c76dcf7cf7348b000
1 // { dg-do run  }
2 // Adapted from testcase by Oskar Enoksson <osken393@student.liu.se>
4 extern "C" void abort();
6 template<class T0>
7 class A {
8 public:
9   typedef T0 T;
12 template<int K>
13 class B {
14   typedef A<char[K]> BC;
17 template<int N, int M>
18 class C { 
19 public:
20   typedef A<char[M]> AC;
23 int main() {
24   if (sizeof(C<3,7>::AC::T) != 7) 
25     abort();