Update OpenACC testcases
[official-gcc.git] / gcc / testsuite / gfortran.dg / goacc / routine-8.f90
blobc90391538854f6f29a7749661bad1d3c7d64a7cd
1 ! Test ACC ROUTINE inside an interface block.
3 program main
4 interface
5 function s_1 (a)
6 integer a
7 !$acc routine
8 end function s_1
9 end interface
11 interface
12 function s_2 (a)
13 integer a
14 !$acc routine seq
15 end function s_2
16 end interface
18 interface
19 function s_3 (a)
20 integer a
21 !$acc routine (s_3) ! { dg-error "Only the ..ACC ROUTINE form without list is allowed in interface block" }
22 end function s_3
23 end interface
25 interface
26 function s_4 (a)
27 integer a
28 !$acc routine (s_4) seq ! { dg-error "Only the ..ACC ROUTINE form without list is allowed in interface block" }
29 end function s_4
30 end interface
31 end program main