Files
codeql/cpp/ql/test/library-tests/constexpr_if/test.cpp
2019-07-30 14:07:35 +01:00

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;
}
}