aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/sizeof3.C
blob: 7c9d0d2c9da22423db13d00850212d7de7f57a4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// The call to f is not potentially evaluated (3.2), so f<int> is not used,
// so it should not be required.

template <class T>
T f (T)
{
  typename T::X x;
}

int main()
{
  int i = sizeof (f(0));
}