From: Ian Lance Taylor Date: Fri, 21 Jan 2005 19:23:06 +0000 (+0000) Subject: * gcc.dg/20050121-1.c: New test. X-Git-Tag: releases/gcc-4.0.0~1386 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15c8b2d40aa9a338654a3647a427f64ff111bca6;p=thirdparty%2Fgcc.git * gcc.dg/20050121-1.c: New test. From-SVN: r94029 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9c88afbf2efa..3d569207d849 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,4 +1,6 @@ -2005-01-21 Ian Lance Taylor +2005-01-21 Ian Lance Taylor + + * gcc.dg/20050121-1.c: New test. PR tree-optimization/13000 * gcc.dg/20040206-1.c: Change warning to point where function is diff --git a/gcc/testsuite/gcc.dg/20050121-1.c b/gcc/testsuite/gcc.dg/20050121-1.c new file mode 100644 index 000000000000..a0b717e0eb01 --- /dev/null +++ b/gcc/testsuite/gcc.dg/20050121-1.c @@ -0,0 +1,9 @@ +/* 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" } */ +}