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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
memtemp65.C
blob
76eab7f1f3003cf7927938dd6d6475ac35df908c
1
// { dg-do assemble }
2
3
template<unsigned int n> struct PartialDotProduct {
4
template<class T>
5
static T Expand(T* a, T* b) { return T(); }
6
};
7
8
const int N = 10;
9
10
template<class In1, class In2>
11
void
12
dot(In1 f1, In2 f2)
13
{
14
PartialDotProduct<N>::Expand(f1, f2);
15
16
}
17
18
int main()
19
{
20
double a[N], b[N];
21
22
dot(&a[0], &b[0]);
23
}