]> gcc.gnu.org Git - gcc.git/commitdiff
testsuite: Expect a warning on aarch64 for declare-simd-coarray-lib.f90 [PR93660]
authorJakub Jelinek <jakub@redhat.com>
Mon, 29 Mar 2021 15:05:47 +0000 (17:05 +0200)
committerJakub Jelinek <jakub@redhat.com>
Mon, 29 Mar 2021 15:05:47 +0000 (17:05 +0200)
aarch64 currently doesn't support declare simd where the return value and arguments
have different sizes and warns about that case.  This change adds a dg-warning
for that case like various other tests have already.

2021-03-29  Jakub Jelinek  <jakub@redhat.com>

PR fortran/93660
* gfortran.dg/gomp/declare-simd-coarray-lib.f90: Expect a mixed size
declare simd warning on aarch64.

gcc/testsuite/gfortran.dg/gomp/declare-simd-coarray-lib.f90

index 1f74da76ffe3f45b85e7f89534b7bf2ab923b4ff..f0c4e39efba140550f25c1b283d8eca66760f3a9 100644 (file)
@@ -5,7 +5,7 @@
 ! Failed as TREE_TYPE(fndecl) did not include the
 ! hidden caf_token/caf_offset arguments.
 !
-integer function f(x)
+integer function f(x)  ! { dg-warning "GCC does not currently support mixed size types for 'simd' functions" "" { target aarch64*-*-* } }
    integer :: x[*]
    !$omp declare simd
    f = x[1]
This page took 0.104111 seconds and 5 git commands to generate.