blob: d49436070864c6882f7a9c3c9a41e6ffc2cfa330 [file] [log] [blame]
/* PR c/97125 */
/* { dg-do compile } */
/* { dg-options "-Wduplicated-branches" } */
void foo (void);
void
fn1 (void)
{
if (0)
foo ();
else
switch (0);
}
void
fn2 (void)
{
if (0)
foo ();
else
while (0);
}
void
fn3 (void)
{
if (0)
foo ();
else
for (;;);
}