2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / lto / 20091004-3_0.C
blob124eea5e4ebd820aee65285eaa1240f948cfbeec
1 // { dg-lto-do assemble }
2 // { dg-lto-options {{-O -flto}} }
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)
9   a = sqrt(b[X] * b[X] + b[Y] * b[Y] + b[Z] * b[Z]);
11 void
12 determine_subpatch_flatness(void)
14   double temp1;
15   VECTOR TempV;
16   VLength(temp1, TempV);
17   VLength(temp1, TempV);