sizeof3.C: a similar testcase not involving base classes

* g++.old-deja/g++.pt/sizeof3.C: a similar testcase not involving
	base classes

From-SVN: r23469
This commit is contained in:
Alexandre Oliva 1998-10-31 02:06:21 +00:00 committed by Alexandre Oliva
parent e1a96a5729
commit cba30eb8f8
2 changed files with 30 additions and 0 deletions

View File

@ -1,5 +1,8 @@
1998-10-31 Alexandre Oliva <oliva@dcc.unicamp.br>
* g++.old-deja/g++.pt/sizeof3.C: a similar testcase not involving
base classes
* g++.old-deja/g++.pt/sizeof2.C: incorrect specialization of base
template is selected

View File

@ -0,0 +1,27 @@
// Adapted from testcase by Oskar Enoksson <osken393@student.liu.se>
// execution test - XFAIL *-*-*
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) // gets bogus error - XFAIL *-*-*
abort();
}