We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59e22f6 commit 4e62dc8Copy full SHA for 4e62dc8
cpp/ql/test/library-tests/exprs/unevaluated/test.cpp
@@ -62,3 +62,9 @@ Virtual getAVirtual();
62
void test9() {
63
typeid(getAVirtual()); // unevaluated
64
}
65
+
66
+void constExprIf() {
67
+ if constexpr(sizeof(int) == 4) { } // unevaluated
68
+}
69
70
+// semmle-extractor-options: -std=c++20
0 commit comments