Make sure, the command line setting for the "Unreachable code" warning is
checked in all cases before outputting such a warning. Fixes #2655.
This commit is contained in:
18
test/misc/bug2655.c
Normal file
18
test/misc/bug2655.c
Normal file
@@ -0,0 +1,18 @@
|
||||
void f1(void)
|
||||
{
|
||||
if (1) {
|
||||
f1();
|
||||
} else {
|
||||
f1();
|
||||
}
|
||||
}
|
||||
|
||||
void f2(void)
|
||||
{
|
||||
if (0) {
|
||||
f2();
|
||||
} else {
|
||||
f2();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user