Debian Codegraph @

gcc/testsuite/gfortran.dg/goacc/pure-elemental-procedures-2.f90

raw
1 pure elemental subroutine foo()
2 !$acc routine vector ! { dg-error "ROUTINE with GANG, WORKER, or VECTOR clause is not permitted in PURE procedure" }
3 end
4
5 pure elemental subroutine foo_nh()
6 !$acc routine nohost vector ! { dg-error "ROUTINE with GANG, WORKER, or VECTOR clause is not permitted in PURE procedure" }
7 end
8
9 elemental subroutine foo2()
10 !$acc routine (myfoo2) gang ! { dg-error "Invalid NAME 'myfoo2' in" }
11 end
12
13 elemental subroutine foo2a()
14 !$acc routine gang ! { dg-error "ROUTINE with GANG, WORKER, or VECTOR clause is not permitted in PURE procedure" }
15 end
16
17 elemental subroutine foo2a_nh()
18 !$acc routine nohost gang ! { dg-error "ROUTINE with GANG, WORKER, or VECTOR clause is not permitted in PURE procedure" }
19 end
20
21 pure subroutine foo3()
22 !$acc routine vector ! { dg-error "ROUTINE with GANG, WORKER, or VECTOR clause is not permitted in PURE procedure" }
23 end
24
25 pure subroutine foo3_nh()
26 !$acc routine nohost vector ! { dg-error "ROUTINE with GANG, WORKER, or VECTOR clause is not permitted in PURE procedure" }
27 end
28
29 elemental impure subroutine foo4()
30 !$acc routine vector ! OK: impure
31 end
32
33 elemental impure subroutine foo4_nh()
34 !$acc routine nohost vector ! OK: impure
35 end
36
37 pure subroutine foo5()
38 !$acc routine seq ! OK: seq
39 end
40
41 pure subroutine foo5_nh()
42 !$acc routine nohost seq ! OK: seq
43 end
44
45 pure subroutine foo6()
46 !$acc routine ! OK (implied 'seq')
47 end
48
49 pure subroutine foo6_nh()
50 !$acc routine nohost ! OK (implied 'seq')
51 end