From: Tobias Burnus Date: Tue, 30 Jul 2024 08:18:06 +0000 (+0200) Subject: gfortran.dg/compiler-directive_2.f: Update dg-error X-Git-Tag: basepoints/gcc-16~7152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15158a8853a69f27a3c14644f35a93029dea6a84;p=thirdparty%2Fgcc.git gfortran.dg/compiler-directive_2.f: Update dg-error This is a fallout of commit r15-2378-g29b1587e7d3466 OpenMP/Fortran: Fix handling of 'declare target' with 'link' clause [PR115559] where the '!GCC$' attributes were added in reverse order. Result: The error diagnostic for the stdcall/fastcall was reversed. Solution: Swap the order in dg-error. gcc/testsuite/ChangeLog: * gfortran.dg/compiler-directive_2.f: Update dg-error. --- diff --git a/gcc/testsuite/gfortran.dg/compiler-directive_2.f b/gcc/testsuite/gfortran.dg/compiler-directive_2.f index 79169a896ae..c31349f3348 100644 --- a/gcc/testsuite/gfortran.dg/compiler-directive_2.f +++ b/gcc/testsuite/gfortran.dg/compiler-directive_2.f @@ -5,6 +5,6 @@ ! Check for calling convention consitency ! in procedure-pointer assignments. ! - subroutine test() ! { dg-error "fastcall and stdcall attributes are not compatible" } + subroutine test() ! { dg-error "stdcall and fastcall attributes are not compatible" } cGCC$ attributes stdcall, fastcall::test end subroutine test