New tests.

From-SVN: r73469
This commit is contained in:
Richard Henderson 2003-11-11 14:33:06 -08:00
parent 86098eb892
commit fd9af78164
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,13 @@
/* Make sure that dead code isn't eliminated too early, avoiding
detection of errors. */
/* { dg-do compile } */
void foo(void)
{
if (0)
break; /* { dg-error "" } */
if (1)
;
else
continue; /* { dg-error "" } */
}

View File

@ -0,0 +1,13 @@
/* Make sure that dead code isn't eliminated too early, avoiding
detection of errors. */
/* { dg-do compile } */
void foo(void)
{
if (0)
break; /* { dg-error "" } */
if (1)
;
else
continue; /* { dg-error "" } */
}