Debian Codegraph @

gcc/testsuite/g++.dg/vect/pr107766.cc

raw
1 // { dg-do compile }
2 // { dg-additional-options "-ffp-contract=off" }
3
4 typedef double btScalar;
5 struct btVector3 {
6 operator btScalar *() const;
7 };
8 double m_vec[2];
9 struct btShapeMatrix {
10 double &operator[](int i) { return m_vec[i]; }
11 };
12 btScalar shape_function___1pxt1pz, shape_function__fac;
13 struct btMiniSDF {
14 void shape_function_(btVector3 const &) const;
15 };
16 void btMiniSDF::shape_function_(btVector3 const &xi) const {
17 btShapeMatrix res;
18 btScalar _1m3y = 1.0 - 3.0 * xi[1], _1p3y = 1.0 + 3.0 * xi[1],
19 fact1m3y = shape_function__fac * _1m3y,
20 fact1p3y = shape_function__fac * _1p3y;
21 res[22] = fact1m3y * shape_function___1pxt1pz;
22 res[23] = fact1p3y * shape_function___1pxt1pz;
23 }