2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / template3.C
blob271dab0f39eaae9c2b35e410d792e38654fe0da6
1 // { dg-do assemble  }
2 // GROUPS passed templates
3 template< class R, class T1 = R, class T2 = T1 >
4 struct plus
5   {
6   R operator()( const T1& x, const T2& y ) const
7     {
8     return x + y;
9     }
10   };
12 int
13 main()
14   {
15   plus< int > p;
16   return 0;
17   }