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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [torture/] [20090706-1.C] - Blame information for rev 307

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

Line No. Rev Author Line
1 301 jeremybenn
/* { dg-do compile } */
2
 
3
namespace std __attribute__ ((__visibility__ ("default"))) {
4
    template     class new_allocator     { };
5
    template     class allocator: public new_allocator<_Tp> { };
6
    template     struct _Vector_base     { };
7
    template >
8
    class vector : protected _Vector_base<_Tp, _Alloc>     { };
9
};
10
template class Vector { };
11
enum CenteringType { VertexType,  EdgeType,  FaceType,  CellType };
12
enum ContinuityType { XDim = 1,  YDim = XDim << 1,  ZDim = YDim << 1 };
13
template  class Centering {
14
public:
15
    typedef Vector Position;
16
    typedef std::vector Positions;
17
    Centering(const Positions &positions);
18
    Positions positions_m;
19
};
20
template  class CanonicalCentering {
21
    CanonicalCentering();
22
    template  static T combine(const T &op1, const T &op2);
23
    static Centering*** centering_table_m;
24
};
25
template  CanonicalCentering::CanonicalCentering()
26
{
27
  typename Centering::Positions positions[Dim][2];
28
  enum { x = 0, y, z };
29
  int cont = 0;
30
  if (Dim > 1)
31
    {
32
      centering_table_m[EdgeType][cont][YDim] =  Centering(positions[y][cont]);
33
      centering_table_m[EdgeType][cont][XDim|YDim] =  Centering(combine(positions[x][cont], positions[y][cont]));
34
    }
35
  if (Dim > 2)
36
    {
37
      centering_table_m[EdgeType][cont][ZDim] =  Centering(positions[z][cont]);
38
      centering_table_m[EdgeType][cont][XDim|ZDim] =  Centering(combine(positions[x][cont], positions[z][cont]));
39
    }
40
}
41
template class CanonicalCentering<2>;

powered by: WebSVN 2.1.0

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