C++: Add more static qualifiers in syntax zoo test

This commit is contained in:
Jeroen Ketema
2023-03-03 15:03:31 +01:00
parent 87b1c3eaa8
commit 620c69df12
2 changed files with 5 additions and 5 deletions

View File

@@ -1,21 +1,21 @@
void f1() { static void f1() {
for (int i = 0; i < 10; i++) { for (int i = 0; i < 10; i++) {
l1: l1:
} }
; ;
} }
void f2() { static void f2() {
for (int i = 0; false; i++) { // true edge pruned for (int i = 0; false; i++) { // true edge pruned
} }
} }
void f3() { static void f3() {
for (int i = 0; true; i++) { // false edge pruned for (int i = 0; true; i++) { // false edge pruned
} }
} }
void f4() { static void f4() {
for (int i = 0; i < 0; i++) { // true edge pruned for (int i = 0; i < 0; i++) { // true edge pruned
} }
} }

View File

@@ -1,4 +1,4 @@
void f() { static void f() {
int a, b; int a, b;
if (a || b) { if (a || b) {
} }