aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit50.C
blob: 8c424cc744cbbce36c9b22382d653f558bfb9e3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern "C" void abort ();

template <class T> int f ()
{
  return sizeof(T);
}

int main ()
{
  if (f<long> () != sizeof(long)
      || f<char> () != sizeof(char)
      || f<long> () != sizeof(long)
      || f<long int> () != sizeof(long int))
    abort ();
}