summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/sizeof3.C
blob: a98bbc30adc883811fbface14e77232aaa6696df (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 instantiated.

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

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