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
2001-02-26 Jeffrey Oldham <oldham@codesourcery.com>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
memtemp65.C
1
// Build don't link:
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
}