111
|
1 /* { dg-do compile } */
|
|
2 /* { dg-options "-O2 -fnon-call-exceptions -ffast-math -fsignaling-nans" } */
|
145
|
3 /* { dg-warning "'-fassociative-math' disabled" "" { target *-*-* } 0 } */
|
111
|
4
|
|
5 template <class T>
|
|
6 class ggStaticArray {
|
|
7 public:
|
|
8 ~ggStaticArray();
|
|
9 };
|
|
10
|
|
11 template <class T>
|
|
12 class ggGrid {
|
|
13 public:
|
|
14 ggGrid() : grid() { }
|
|
15 ggStaticArray<T> grid;
|
|
16 };
|
|
17
|
|
18 class mrGrid {
|
|
19 public:
|
|
20 mrGrid(void);
|
|
21 protected:
|
|
22 ggGrid<int*> grid;
|
|
23 double multiplier;
|
|
24 };
|
|
25
|
|
26 mrGrid::mrGrid(void)
|
|
27 {
|
|
28 double xMeasure, yMeasure, zMeasure;
|
|
29 double cellDimension;
|
|
30
|
|
31 cellDimension = multiplier * (xMeasure * yMeasure * zMeasure);
|
|
32 }
|