On Sun, Jul 8, 2012 at 9:29 AM, Dehao Chen <de...@google.com> wrote: > Hi, Richard, > > A test is added. Is it ok?
Ok. Thanks, RIchard. > Thanks, > Dehao > > gcc/testsuite/ChangeLog > > 2012-07-08 Dehao Chen <de...@google.com> > > * gcc.dg/debug_info_inline.c: New test. > > Index: gcc/testsuite/gcc.dg/debug_info_inline.c > =================================================================== > --- gcc/testsuite/gcc.dg/debug_info_inline.c (revision 0) > +++ gcc/testsuite/gcc.dg/debug_info_inline.c (revision 0) > @@ -0,0 +1,24 @@ > +/* { dg-do compile } */ > +/* { dg-options "-O2 -g" } */ > + > +int g, a; > + > +static int foo () > +{ > + int ret = a; > + > + if (g > -10) > + return 10; > + > + return ret; > +} > + > +int bar() > +{ > + if (foo()) > + return 0; > + else > + return 1; > +} > + > +/* { dg-final { scan-assembler "loc 1 19 0\n.*\n.LBB" } } */