Files
codeql/cpp/ql/test/library-tests/constexpr_if/test.cpp
2024-12-19 21:46:33 +01:00

15 lines
196 B
C++

// semmle-extractor-options: -std=c++20
void test(void) {
int x;
if constexpr (true) {
x = 1;
} else {
x = 2;
}
if constexpr (false) {
x = 3;
}
}