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 or wrapping the defining class in an anonymous namespace the TRAP keys will differ from each other.
26 lines
211 B
C++
26 lines
211 B
C++
namespace ehandler {
|
|
|
|
class C { };
|
|
class D { };
|
|
|
|
static void g() {
|
|
throw 1;
|
|
}
|
|
|
|
static void f() {
|
|
try {
|
|
try {
|
|
g();
|
|
throw 2;
|
|
l:
|
|
} catch (int) {
|
|
4;
|
|
}
|
|
} catch (C) {
|
|
5;
|
|
} catch (D) {
|
|
6;
|
|
}
|
|
}
|
|
}
|