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/] [opt/] [pr34036.C] - Rev 301
Compare with Previous | Blame | View Log
/* { dg-do compile } */
/* { dg-options "-O2 -fnon-call-exceptions -ffast-math -fsignaling-nans" } */
/* { dg-warning "-fassociative-math disabled" "" { target *-*-* } 1 } */
template <class T>
class ggStaticArray {
public:
~ggStaticArray();
};
template <class T>
class ggGrid {
public:
ggGrid() : grid() { }
ggStaticArray<T> grid;
};
class mrGrid {
public:
mrGrid(void);
protected:
ggGrid<int*> grid;
double multiplier;
};
mrGrid::mrGrid(void)
{
double xMeasure, yMeasure, zMeasure;
double cellDimension;
cellDimension = multiplier * (xMeasure * yMeasure * zMeasure);
}