mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
27 lines
325 B
C++
27 lines
325 B
C++
|
|
namespace foo {
|
|
namespace bar {
|
|
void f(int i) {
|
|
int j;
|
|
try {
|
|
for (i = 0; i < 3; i++) {
|
|
int k;
|
|
}
|
|
}
|
|
catch (int e) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
template<typename T>
|
|
T var = 42;
|
|
|
|
int g() {
|
|
requires(int l) { l; };
|
|
|
|
return var<int>;
|
|
}
|
|
|
|
// semmle-extractor-options: -std=c++20
|