New tests.
From-SVN: r73469
This commit is contained in:
parent
86098eb892
commit
fd9af78164
13
gcc/testsuite/g++.dg/parse/dce1.C
Normal file
13
gcc/testsuite/g++.dg/parse/dce1.C
Normal 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 "" } */
|
||||
}
|
13
gcc/testsuite/gcc.dg/20031111-1.c
Normal file
13
gcc/testsuite/gcc.dg/20031111-1.c
Normal 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 "" } */
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user