aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/template22.C
blob: 28c70b343014ac2e1bc4bf22a659ac24a98a35ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// GROUPS passed templates
extern "C" int printf (const char *, ...);

template <class T>
class Foo
{
public:
  void func (int const& i);
};

template <class T>
void Foo<T>::
func (int const& i)
{}


int main ()
{ 
  Foo<int const> foo;
  printf ("PASS\n");
  return 0;
}