mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
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.
39 lines
382 B
C
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:;
|
|
}
|