This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Possible patch for tree-optimization/13000


Richard Henderson <rth@redhat.com> writes:

> I'm willing to accept this as an update to the previous patch.
> Please add the "return;break;" things as a dg testcase.

Test added.  New file shown below.

Ian


2005-01-21  Ian Lance Taylor  <ian@airs.com>

	* gcc.dg/20050121-1.c: New test.


/* I accidentally broke this while developing a patch for PR 13000,
   and didn't notice since the testsuite didn't catch it -- ian  */
/* { dg-do-compile } */

void foo()
{
  return;
  break;	/* { dg-warning "break statement not within" } */
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]