OSDN Git Service

* gcc.dg/20020201-1.c: Use cleanup-coverage_files.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.jason / hmc1.C
1 // { dg-do assemble  }
2 // GROUPS passed templates default-arguments
3 template <class I>
4 class Class {
5 public:
6   void func1(int n=1);
7   void func2(int d) {}
8 };
9 template <class I> 
10 void Class<I>::func1(int n) {}
11
12 //if this is replaced by:
13 //void Class<I>::func1(int n=1) {}
14 //the code compiles.
15
16 int main() {
17   Class<int> C;
18   return 0;
19 }