FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / template3.C
blob7523824864ef3b301f140544f8fb18f998658059
1 // Build don't link: 
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   }