OSDN Git Service

PR c++/51186
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / lto / 20091004-3_0.C
1 // { dg-lto-do assemble }
2 // { dg-lto-options {{-O -flto}} }
3
4 extern "C" double sqrt (double __x) throw ();
5 typedef double VECTOR[3];
6 enum { X = 0,  Y = 1,  Z = 2,  T = 3 };
7 inline void VLength(double& a, const VECTOR b)
8 {
9   a = sqrt(b[X] * b[X] + b[Y] * b[Y] + b[Z] * b[Z]);
10 }
11 void
12 determine_subpatch_flatness(void)
13 {
14   double temp1;
15   VECTOR TempV;
16   VLength(temp1, TempV);
17   VLength(temp1, TempV);
18 }