From 0796184573355d69b26647f2d8532e5c52f37a2c Mon Sep 17 00:00:00 2001 From: Jeroen Ketema Date: Wed, 28 May 2025 14:16:47 +0200 Subject: [PATCH] C++: Specify GNU version on min/max test The `?` operators where removed in g++ in version 4.3, and the latest version of our our frontend enforces this through a version check. Hence, to keep the test working, we not to explicitly specify a version. --- cpp/ql/test/library-tests/exprs/min_max/expr.expected | 8 ++++---- cpp/ql/test/library-tests/exprs/min_max/test.cpp | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cpp/ql/test/library-tests/exprs/min_max/expr.expected b/cpp/ql/test/library-tests/exprs/min_max/expr.expected index ebd03f8b699..b2ce8fb6e40 100644 --- a/cpp/ql/test/library-tests/exprs/min_max/expr.expected +++ b/cpp/ql/test/library-tests/exprs/min_max/expr.expected @@ -1,6 +1,6 @@ -| test.cpp:3:13:3:13 | i | -| test.cpp:3:13:3:18 | ... ? ... | +| test.cpp:4:13:4:18 | ... ? ... | +| test.cpp:5:18:5:18 | j | diff --git a/cpp/ql/test/library-tests/exprs/min_max/test.cpp b/cpp/ql/test/library-tests/exprs/min_max/test.cpp index d8be21af82a..f62e08974ce 100644 --- a/cpp/ql/test/library-tests/exprs/min_max/test.cpp +++ b/cpp/ql/test/library-tests/exprs/min_max/test.cpp @@ -1,3 +1,4 @@ +// semmle-extractor-options: --gnu_version 40200 void f(int i, int j) { int k = i