mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
C++: Add testcase that previously resulted in a false positive
This commit is contained in:
@@ -69,3 +69,10 @@ void test10(int x) {
|
||||
} while (0);
|
||||
}
|
||||
}
|
||||
|
||||
extern const int const256;
|
||||
|
||||
void test11() {
|
||||
short s;
|
||||
for(s = 0; s < const256; ++s) {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
const int const256 = 256;
|
||||
Reference in New Issue
Block a user