☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
static14.C
☽
☼
gcc/testsuite/g++.dg/template/static14.C
code
plain
raw
1
struct Base {
2
int x;
3
};
4
5
template <typename T>
6
struct A {
7
static const int N = sizeof(static_cast<Base*>(T()));
8
int a[N];
9
};
10
11
struct Derived : Base {
12
A<Derived*> a;
13
};