@@ -5,14 +5,11 @@ module m
5
5
end
6
6
end interface
7
7
contains
8
- !ERROR: A device subprogram may not be RECURSIVE, PURE, or ELEMENTAL
9
- recursive attributes(device) subroutine s1
8
+ recursive attributes(device) subroutine s1 ! ok
10
9
end
11
- !ERROR: A device subprogram may not be RECURSIVE, PURE, or ELEMENTAL
12
- pure attributes(device) subroutine s2
10
+ pure attributes(device) subroutine s2 ! ok
13
11
end
14
- !ERROR: A device subprogram may not be RECURSIVE, PURE, or ELEMENTAL
15
- elemental attributes(device) subroutine s3
12
+ elemental attributes(device) subroutine s3 ! ok
16
13
end
17
14
subroutine s4
18
15
contains
@@ -32,14 +29,11 @@ module m
32
29
!ERROR: A function may not have ATTRIBUTES(GLOBAL) or ATTRIBUTES(GRID_GLOBAL)
33
30
attributes(global) real function f1
34
31
end
35
- !ERROR: A device subprogram may not be RECURSIVE, PURE, or ELEMENTAL
36
- recursive attributes(global) subroutine s7
32
+ recursive attributes(global) subroutine s7 ! ok
37
33
end
38
- !ERROR: A device subprogram may not be RECURSIVE, PURE, or ELEMENTAL
39
- pure attributes(global) subroutine s8
34
+ pure attributes(global) subroutine s8 ! ok
40
35
end
41
- !ERROR: A device subprogram may not be RECURSIVE, PURE, or ELEMENTAL
42
- elemental attributes(global) subroutine s9
36
+ elemental attributes(global) subroutine s9 ! ok
43
37
end
44
38
end
45
39
0 commit comments