Commit cba30eb8 by Alexandre Oliva Committed by Alexandre Oliva

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
parent e1a96a57
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
......
// 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();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment