OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2006-01-05 Erik Edelmann <eedelman@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
memtemp53.C
1
// { dg-do link }
2
// GROUPS passed templates membertemplates
3
template<int N>
4
struct I {
5
};
6
7
template<class T>
8
struct A {
9
10
int r;
11
12
template<class T1, class T2>
13
void operator()(T1, T2)
14
{ r = 0; }
15
16
template<int N1, int N2>
17
void operator()(I<N1>, I<N2>)
18
{ r = 1; }
19
};
20
21
int main()
22
{
23
A<float> x;
24
I<0> a;
25
I<1> b;
26
27
x(a,b);
28
if (x.r != 1)
29
return 1;
30
31
x(float(), double());
32
if (x.r != 0)
33
return 1;
34
35
return 0;
36
}