OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [memtemp65.C] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
// { dg-do assemble  }
// { dg-do assemble  }
template struct PartialDotProduct {
template struct PartialDotProduct {
    template
    template
    static T Expand(T* a, T* b) { return T(); }
    static T Expand(T* a, T* b) { return T(); }
};
};
const int N = 10;
const int N = 10;
template
template
void
void
dot(In1 f1, In2 f2)
dot(In1 f1, In2 f2)
{
{
  PartialDotProduct::Expand(f1, f2);
  PartialDotProduct::Expand(f1, f2);
}
}
int main()
int main()
{
{
  double a[N], b[N];
  double a[N], b[N];
  dot(&a[0], &b[0]);
  dot(&a[0], &b[0]);
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.