C++: Add testcase that previously resulted in a false positive

This commit is contained in:
Mathias Vorreiter Pedersen
2020-03-09 22:33:59 +01:00
parent 525a00098e
commit 1a5282ae21
2 changed files with 8 additions and 0 deletions

View File

@@ -69,3 +69,10 @@ void test10(int x) {
} while (0);
}
}
extern const int const256;
void test11() {
short s;
for(s = 0; s < const256; ++s) {}
}

View File

@@ -0,0 +1 @@
const int const256 = 256;