2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr34036.C
blobf4e18c81481a310fab54a9657abfbe49bf60af96
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fnon-call-exceptions -ffast-math -fsignaling-nans" } */
3 /* { dg-warning "-fassociative-math disabled" "" { target *-*-* } 0 } */
5 template <class T>
6 class ggStaticArray {
7 public:
8   ~ggStaticArray();
9 };
11 template <class T>
12 class ggGrid {
13 public:
14   ggGrid() : grid() { }
15   ggStaticArray<T> grid;
18 class mrGrid {
19 public:
20   mrGrid(void);
21 protected:
22   ggGrid<int*> grid;
23   double multiplier;
26 mrGrid::mrGrid(void)
28   double xMeasure, yMeasure, zMeasure;
29   double cellDimension;
31   cellDimension = multiplier * (xMeasure * yMeasure * zMeasure);