mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
C++: Add constexpr if testcase.
This commit is contained in:
@@ -62,3 +62,9 @@ Virtual getAVirtual();
|
||||
void test9() {
|
||||
typeid(getAVirtual()); // unevaluated
|
||||
}
|
||||
|
||||
void constExprIf() {
|
||||
if constexpr(sizeof(int) == 4) { } // unevaluated
|
||||
}
|
||||
|
||||
// semmle-extractor-options: -std=c++20
|
||||
Reference in New Issue
Block a user