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:
parent
e1a96a5729
commit
cba30eb8f8
@ -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
|
||||
|
||||
|
27
gcc/testsuite/g++.old-deja/g++.pt/sizeof3.C
Normal file
27
gcc/testsuite/g++.old-deja/g++.pt/sizeof3.C
Normal 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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user