Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.old-deja/g++.pt/sizeof3.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
// { 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(); }