]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: fix `mangle_5.C` test
authorKarl Meakin <karl.meakin@arm.com>
Thu, 11 Dec 2025 16:24:51 +0000 (16:24 +0000)
committerKarl Meakin <karl.meakin@arm.com>
Mon, 26 Jan 2026 15:24:00 +0000 (15:24 +0000)
The `volatile` type qualifier is deprecated on function parameters and
return types since C++ 20. This caused extra warning to be emmitted, so
the test failed. Fix it by suppressing the warning.

gcc/testsuite/ChangeLog:

* g++.target/aarch64/sve/acle/general-c++/mangle_5.C: Fix test.

gcc/testsuite/g++.target/aarch64/sve/acle/general-c++/mangle_5.C

index 1504cc12f41b9903bd924faf0b26b5c5a7d12c77..73254844e346c5b342a2364d58fe7226aa6a8a6b 100644 (file)
@@ -1,3 +1,7 @@
+// { dg-options "-Wno-volatile" }
+// Disable warning about volatile qualifier on function arguments as they are
+// deprecated in C++20.
+
 typedef const __SVInt8_t foo;
 typedef volatile foo bar;