summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/static1.C
blob: 67e236316004d7fc47309f400fc533bdb44f98ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
extern "C" void abort();

template <class T> 
class A
{
 public:
  static int foo(int);
};

template <>
int A<int>::foo(int i)
{
  return i;
}


int main()
{
  if (A<int>::foo(22) != 22)
    abort();
}