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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr49628.C] - Blame information for rev 715

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do compile } */
2
 
3
#include 
4
 
5
template  class Tensor;
6
template  class Tensor<1,dim> {
7
public:
8
    explicit Tensor (const bool initialize = true);
9
    Tensor (const Tensor<1,dim> &);
10
    Tensor<1,dim> & operator = (const Tensor<1,dim> &);
11
    double values[(dim!=0) ? (dim) : 1];
12
};
13
template 
14
inline Tensor<1,dim> & Tensor<1,dim>::operator = (const Tensor<1,dim> &p)
15
{
16
  for (unsigned int i=0; i
17
    values[i] = p.values[i];
18
};
19
template  class Quadrature {
20
public:
21
    const unsigned int n_quadrature_points;
22
};
23
class MappingQ1
24
{
25
  class InternalData  {
26
  public:
27
      std::vector > shape_derivatives;
28
      unsigned int n_shape_functions;
29
  };
30
  void compute_data (const Quadrature<3> &quadrature, InternalData &data)
31
      const;
32
};
33
void MappingQ1::compute_data (const Quadrature<3> &q, InternalData &data) const
34
{
35
  const unsigned int n_q_points = q.n_quadrature_points;
36
  data.shape_derivatives.resize(data.n_shape_functions * n_q_points);
37
}

powered by: WebSVN 2.1.0

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