From: Andrew Pinski Date: Sun, 1 Dec 2024 04:34:54 +0000 (-0800) Subject: testsuite: Fix part of sve-sizeless-2.c X-Git-Tag: basepoints/gcc-16~3716 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdcc93877f85b2dd95cec0b87abee3a6c6d04780;p=thirdparty%2Fgcc.git testsuite: Fix part of sve-sizeless-2.c r15-5783-gb5df3eefd70064 missed to update part of sve-sizeless-2.C to include the declaration of the bar function. This corrects the oversight there. Pushed as obvious after testing the tecase for aarch64-linux-gnu. gcc/testsuite/ChangeLog: * g++.dg/ext/sve-sizeless-2.C: Add declaration of bar. Signed-off-by: Andrew Pinski --- diff --git a/gcc/testsuite/g++.dg/ext/sve-sizeless-2.C b/gcc/testsuite/g++.dg/ext/sve-sizeless-2.C index 87937d060d2e..a5ee230f76a3 100644 --- a/gcc/testsuite/g++.dg/ext/sve-sizeless-2.C +++ b/gcc/testsuite/g++.dg/ext/sve-sizeless-2.C @@ -124,6 +124,8 @@ void thrower2 () throw (svint8_t); // { dg-error {cannot throw or catch SVE type void thrower3 () throw (svint8_t); // { dg-error {cannot throw or catch SVE type 'svint8_t'} "" { target c++98_only } } #endif +extern int bar (void); + // Main tests for statements and expressions. void