From 33c70570660e3b10b6438c79a529326dd192e9b5 Mon Sep 17 00:00:00 2001 From: Jeroen Ketema Date: Wed, 26 Nov 2025 13:42:43 +0100 Subject: [PATCH] C++: Remove incorrect tests `__has_feature` is not available in GCC versions before GCC 14. Our frontend was exposing `__has_feature` when emulating earlier versions of GCC. This will be fixed with the latest major frontend update though. --- .../attributes/deprecated_with_msg/deprecated_with_msg.expected | 2 -- .../test/library-tests/attributes/deprecated_with_msg/gcc421.c | 2 -- .../test/library-tests/attributes/deprecated_with_msg/gcc450.c | 2 -- 3 files changed, 6 deletions(-) delete mode 100644 cpp/ql/test/library-tests/attributes/deprecated_with_msg/gcc421.c delete mode 100644 cpp/ql/test/library-tests/attributes/deprecated_with_msg/gcc450.c diff --git a/cpp/ql/test/library-tests/attributes/deprecated_with_msg/deprecated_with_msg.expected b/cpp/ql/test/library-tests/attributes/deprecated_with_msg/deprecated_with_msg.expected index fcc90fac7abd..9101092571be 100644 --- a/cpp/ql/test/library-tests/attributes/deprecated_with_msg/deprecated_with_msg.expected +++ b/cpp/ql/test/library-tests/attributes/deprecated_with_msg/deprecated_with_msg.expected @@ -1,4 +1,2 @@ | clang421.c:1:12:1:19 | clang421 | 0 | | clang450.c:1:12:1:19 | clang450 | 1 | -| gcc421.c:1:12:1:17 | gcc421 | 0 | -| gcc450.c:1:12:1:17 | gcc450 | 1 | diff --git a/cpp/ql/test/library-tests/attributes/deprecated_with_msg/gcc421.c b/cpp/ql/test/library-tests/attributes/deprecated_with_msg/gcc421.c deleted file mode 100644 index 7f4e4f4d380b..000000000000 --- a/cpp/ql/test/library-tests/attributes/deprecated_with_msg/gcc421.c +++ /dev/null @@ -1,2 +0,0 @@ -static int gcc421 = __has_feature(attribute_deprecated_with_message); -// semmle-extractor-options: --gnu_version 40201 diff --git a/cpp/ql/test/library-tests/attributes/deprecated_with_msg/gcc450.c b/cpp/ql/test/library-tests/attributes/deprecated_with_msg/gcc450.c deleted file mode 100644 index a49c88651638..000000000000 --- a/cpp/ql/test/library-tests/attributes/deprecated_with_msg/gcc450.c +++ /dev/null @@ -1,2 +0,0 @@ -static int gcc450 = __has_feature(attribute_deprecated_with_message); -// semmle-extractor-options: --gnu_version 40500