summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20031111-1.c
blob: f4de52257bcba5ffbe4389a30ad5bb775627e873 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 "" } */
}