summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/static1.C
blob: aafd0091da596a846430662c9f7127feb669c2c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do run  }
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();
}