blob: 46dffd0740bc3ca6afbb82b359cf993d405b69e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
! { dg-do compile }
! { dg-options "-fcoarray=single" }
!
! PR fortran/48820
!
! Assumed-rank tests
subroutine foo(X)
integer :: x(..)
codimension :: x[*] ! { dg-error "The assumed-rank array 'x' at .1. shall not have a codimension" }
end
subroutine foo2(X)
integer, dimension(..) :: x[*] ! { dg-error "The assumed-rank array at .1. shall not have a codimension" }
end
subroutine foo3(X)
integer, codimension[*] :: x(..) ! { dg-error "The assumed-rank array at .1. shall not have a codimension" }
end
subroutine foo4(X)
integer, codimension[*], dimension(..) :: x ! { dg-error "The assumed-rank array at .1. shall not have a codimension" }
end
subroutine bar(X)
integer :: x[*]
dimension :: x(..) ! { dg-error "The assumed-rank array 'x' at .1. shall not have a codimension" }
end
subroutine foobar(X)
integer :: x
codimension :: x[*]
dimension :: x(..) ! { dg-error "The assumed-rank array 'x' at .1. shall not have a codimension" }
end
subroutine barfoo(X)
integer :: x
dimension :: x(..)
codimension :: x[*] ! { dg-error "The assumed-rank array 'x' at .1. shall not have a codimension" }
end
subroutine orig(X) ! { dg-error "may not have the VALUE or CODIMENSION attribute" }
integer :: x(..)[*]
end
subroutine val1(X)
integer, value :: x(..) ! { dg-error "VALUE attribute conflicts with DIMENSION attribute" }
end
subroutine val2(X)
integer, value :: x
dimension :: x(..) ! { dg-error "VALUE attribute conflicts with DIMENSION attribute" }
end
|