Files
codeql/cpp/ql/test/library-tests/qlcfg/ms_try_except.cpp
Jonas Jensen 26f32f0d6d C++: Initial version of CFG.qll
This implements calculation of the control-flow graph in QL. The new
code is not enabled yet as we'll need more extractor changes first.

The `SyntheticDestructorCalls.qll` file is a temporary solution that can
be removed when the extractor produces this information directly.
2019-01-04 13:34:36 +01:00

25 lines
340 B
C++

// semmle-extractor-options: --microsoft
void ms_try_except(int j) {
int x;
__try {
__try {
x = 1;
}
__except (j) {
x = 2;
}
__try {
x = 3;
}
__finally {
x = 4;
}
} __except (j - 1) {
x = 5;
}
;
}