repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
sizeof3.C
blob
fb65a32c1b725f42fb6a546c76dcf7cf7348b000
1
// { dg-do run }
2
// Adapted from testcase by Oskar Enoksson <osken393@student.liu.se>
3
4
extern "C" void abort();
5
6
template<class T0>
7
class A {
8
public:
9
typedef T0 T;
10
};
11
12
template<int K>
13
class B {
14
typedef A<char[K]> BC;
15
};
16
17
template<int N, int M>
18
class C {
19
public:
20
typedef A<char[M]> AC;
21
};
22
23
int main() {
24
if (sizeof(C<3,7>::AC::T) != 7)
25
abort();
26
}