blob: fd3b7bebd8a9fbcb05e8cfb01d919c7e9f6b6f4c [file] [log] [blame]
// PR tree-optimization/58006
// { dg-do compile }
// { dg-require-effective-target pthread }
// { dg-options "-Ofast -ftree-parallelize-loops=2" }
extern "C" float sqrtf (float);
struct S
{
float i, j;
float foo () const { return sqrtf (i * i + j * j); }
S () : i (1), j (1) {}
};
void
bar (int a, int b)
{
int i;
float f;
for (i = a; i < b; i++)
f = S ().foo ();
}