aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/template37.C
blob: fc237ca439e33f12155a4f8992882c4127f02815 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// PRMS Id: 9930
// Test of -fexternal-templates hackery in new template code
// Special g++ options: -fexternal-templates

  #pragma implementation "foo.hh"
  #pragma interface "foo.hh"

  template<class T>
  class ONE
  {
    public:
      static void func();
  };

  template<class T>
  void ONE<T>::func()
  {
  }

  class ONE<int>
  {
    public:
      static void func();
  };

  void ONE<int>::func()
  {
  }

  main()
  {
    ONE<char>::func();
    ONE<int>::func();

    return 0;
  }