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.
13 lines
165 B
C++
13 lines
165 B
C++
extern "C" int printf(const char*, ...);
|
|
|
|
struct Magic {
|
|
~Magic() {
|
|
printf("Goodbye cruel world.\n");
|
|
}
|
|
};
|
|
|
|
static int f() {
|
|
static Magic m;
|
|
return 0;
|
|
}
|