Files
codeql/cpp/ql/test/library-tests/syntax-zoo/dostmt.c
Jeroen Ketema f649def3f8 C++: Silence a number of bogus consistency errors in syntax zoo
These were due to several functions occurring that would have the same TRAP
key. By making the functions static the TRAP keys will differ from each other.
2023-03-03 11:16:19 +01:00

39 lines
382 B
C

void always_false() {
do {
l1:;
} while(0);
l2:;
}
static void always_true_1() {
do {
l1:;
break;
} while(1);
l2:;
}
static void always_true_2() {
do {
l1:;
break;
l2:;
} while(1);
l3:;
}
static void always_true_3() {
do {
l1:;
} while(1);
l2:;
}
static void normal() {
int i = 0;
do {
++i;
} while(i < 10);
l:;
}