mirror of
https://github.com/github/codeql.git
synced 2025-12-23 20:26:32 +01:00
C++: Add more static qualifiers in syntax zoo test
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
void f1() {
|
||||
static void f1() {
|
||||
for (int i = 0; i < 10; i++) {
|
||||
l1:
|
||||
}
|
||||
;
|
||||
}
|
||||
|
||||
void f2() {
|
||||
static void f2() {
|
||||
for (int i = 0; false; i++) { // true edge pruned
|
||||
}
|
||||
}
|
||||
|
||||
void f3() {
|
||||
static void f3() {
|
||||
for (int i = 0; true; i++) { // false edge pruned
|
||||
}
|
||||
}
|
||||
|
||||
void f4() {
|
||||
static void f4() {
|
||||
for (int i = 0; i < 0; i++) { // true edge pruned
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
void f() {
|
||||
static void f() {
|
||||
int a, b;
|
||||
if (a || b) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user