]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gfortran.dg/compiler-directive_2.f: Update dg-error
authorTobias Burnus <tburnus@baylibre.com>
Tue, 30 Jul 2024 08:18:06 +0000 (10:18 +0200)
committerTobias Burnus <tburnus@baylibre.com>
Tue, 30 Jul 2024 08:18:06 +0000 (10:18 +0200)
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.

gcc/testsuite/gfortran.dg/compiler-directive_2.f

index 79169a896ae6ca1a9a2bd7808da1ee817e2ea74c..c31349f3348cfd78f82f347fa393b66cfc6f5ec2 100644 (file)
@@ -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