repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Small ChangeLog tweak.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.law
/
template3.C
blob
271dab0f39eaae9c2b35e410d792e38654fe0da6
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
};
11
12
int
13
main()
14
{
15
plus< int > p;
16
return 0;
17
}