mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
15 lines
199 B
C++
15 lines
199 B
C++
// semmle-extractor-options: --edg --c++20
|
|
|
|
void test(void) {
|
|
int x;
|
|
if constexpr (true) {
|
|
x = 1;
|
|
} else {
|
|
x = 2;
|
|
}
|
|
if constexpr (false) {
|
|
x = 3;
|
|
}
|
|
}
|
|
|