Debian Codegraph @

gcc/testsuite/gfortran.dg/goacc/pr77765.f90

raw
1 ! Test the presence of an ACC ROUTINE directive inside a function
2 ! containg an error.
3
4 ! { dg-do compile }
5
6 module m
7 contains
8 recursive function f(x)
9 end function f
10 recursive function f(x)
11 !$acc routine (f)
12 end function f
13 end module m
14
15 ! { dg-error "Procedure 'f' at .1. is already defined" "" { target *-*-* } 8 }
16 ! { dg-error ".1." "" { target *-*-* } 10 }
17 ! { dg-error "Invalid NAME 'f' in \\!\\\$ACC ROUTINE \\( NAME \\)" "" { target *-*-* } 11 }
18 ! { dg-error "Expecting END MODULE statement" "" { target *-*-* } 12 }