summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/hmc1.C
blob: b023125cf7be7136c6ca8ca229c9103300aaad00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do assemble  }
// GROUPS passed templates default-arguments
template <class I>
class Klasse {
public:
  void func1(int n=1);
  void func2(int d) {}
};
template <class I> 
void Klasse<I>::func1(int n) {}

//if this is replaced by:
//void Klasse<I>::func1(int n=1) {}
//the code compiles.

int main() {
  Klasse<int> C;
  return 0;
}