☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
sizeof3.C
☽
☼
gcc/testsuite/g++.dg/template/sizeof3.C
code
plain
raw
1
// The call to f is not potentially evaluated (3.2), so f<int> is not used,
2
// so it should not be required.
3
4
template <class T>
5
T f (T)
6
{
7
typename T::X x;
8
}
9
10
int main()
11
{
12
int i = sizeof (f(0));
13
}