Message ID | or39qnluln.fsf@livre.localdomain |
---|---|
State | New |
Headers | show |
On 11/26/2010 12:04 PM, Alexandre Oliva wrote: > PR debug/46338 > * g++.dg/debug/pr46338.C: New. Ok. r~
Index: gcc/testsuite/g++.dg/debug/pr46338.C =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ gcc/testsuite/g++.dg/debug/pr46338.C 2010-11-26 03:15:26.561728156 -0200 @@ -0,0 +1,24 @@ +// 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++) + ; +}