mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +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.
26 lines
204 B
C++
26 lines
204 B
C++
namespace ehandler {
|
|
|
|
class C { };
|
|
class D { };
|
|
|
|
void g() {
|
|
throw 1;
|
|
}
|
|
|
|
static void f() {
|
|
try {
|
|
try {
|
|
g();
|
|
throw 2;
|
|
l:
|
|
} catch (int) {
|
|
4;
|
|
}
|
|
} catch (C) {
|
|
5;
|
|
} catch (D) {
|
|
6;
|
|
}
|
|
}
|
|
}
|