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:
Kugel Fuhr
2025-05-21 11:04:21 +02:00
parent c7c7377f7a
commit b5b7ea422e
7 changed files with 45 additions and 3 deletions

18
test/misc/bug2655.c Normal file
View File

@@ -0,0 +1,18 @@
void f1(void)
{
if (1) {
f1();
} else {
f1();
}
}
void f2(void)
{
if (0) {
f2();
} else {
f2();
}
}