Commit 0e160b34 by Alexandre Oliva Committed by Alexandre Oliva

re PR debug/46338 (-fcompare-debug failure (length) with -O -fprofile-generate)

PR debug/46338
* g++.dg/debug/pr46338.C: New.

From-SVN: r167263
parent fabfcf5e
2010-11-29 Alexandre Oliva <aoliva@redhat.com>
PR debug/46338
* g++.dg/debug/pr46338.C: New.
2010-11-29 Richard Guenther <rguenther@suse.de>
Zdenek Dvorak <rakdver@kam.uniff.cz>
......
// PR debug/46338
// { dg-do compile }
// { dg-options "-O -fprofile-generate -fcompare-debug" }
void bar ();
struct S
{
int f ()
{
}
};
S *s;
void
foo (int x)
{
if (x)
return;
bar ();
for (int j = 0; j < s->f (); j++)
;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment