blob: 7e242b9bc3dddea258ec6d529eff63195e7ad8b5 [file] [log] [blame]
// PR debug/46338
// { dg-do compile }
// { dg-require-profiling "-fprofile-generate" }
// { dg-options "-O -fprofile-generate -fcompare-debug" }
void bar ();
struct S
{
int f ()
{
return 0;
}
};
S *s;
void
foo (int x)
{
if (x)
return;
bar ();
for (int j = 0; j < s->f (); j++)
;
}