Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
f2f5814e
Commit
f2f5814e
authored
Oct 25, 2015
by
Andre Vehreschild
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing testcases of r229294 for patch of
PR fortran/66927. From-SVN: r229295
parent
b8ac4f3b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
102 additions
and
0 deletions
+102
-0
gcc/testsuite/gfortran.dg/allocate_with_source_10.f08
+51
-0
gcc/testsuite/gfortran.dg/allocate_with_source_11.f08
+51
-0
No files found.
gcc/testsuite/gfortran.dg/allocate_with_source_10.f08
0 → 100644
View file @
f2f5814e
!{ dg-do run }
!
! Testcase for pr66927
! Contributed by Juergen Reuter <juergen.reuter@desy.de>
module
processes
implicit
none
private
type
::
t1_t
real
::
p
=
0.0
end
type
t1_t
type
::
t2_t
private
type
(
t1_t
),
dimension
(:),
allocatable
::
p
contains
procedure
::
func
=>
t2_func
end
type
t2_t
type
,
public
::
t3_t
type
(
t2_t
),
public
::
int_born
end
type
t3_t
public
::
evaluate
contains
function
t2_func
(
int
)
result
(
p
)
class
(
t2_t
),
intent
(
in
)
::
int
type
(
t1_t
),
dimension
(:),
allocatable
::
p
allocate
(
p
(
5
))
end
function
t2_func
subroutine
evaluate
(
t3
)
class
(
t3_t
),
intent
(
inout
)
::
t3
type
(
t1_t
),
dimension
(:),
allocatable
::
p_born
allocate
(
p_born
(
1
:
size
(
t3
%
int_born
%
func
())),
&
source
=
t3
%
int_born
%
func
())
if
(
.not.
allocated
(
p_born
))
call
abort
()
if
(
size
(
p_born
)
/
=
5
)
call
abort
()
end
subroutine
evaluate
end
module
processes
program
pr66927
use
processes
type
(
t3_t
)
::
o
call
evaluate
(
o
)
end
gcc/testsuite/gfortran.dg/allocate_with_source_11.f08
0 → 100644
View file @
f2f5814e
!{ dg-do run }
!
! Testcase for pr66927, pr67123
! Contributed by Juergen Reuter <juergen.reuter@desy.de>
module
processes
implicit
none
private
type
::
t1_t
real
::
p
=
0.0
end
type
t1_t
type
::
t2_t
private
type
(
t1_t
),
dimension
(:),
allocatable
::
p
contains
procedure
::
func
=>
t2_func
end
type
t2_t
type
,
public
::
t3_t
type
(
t2_t
),
public
::
int_born
end
type
t3_t
public
::
evaluate
contains
function
t2_func
(
int
)
result
(
p
)
class
(
t2_t
),
intent
(
in
)
::
int
class
(
t1_t
),
dimension
(:),
allocatable
::
p
allocate
(
p
(
5
))
end
function
t2_func
subroutine
evaluate
(
t3
)
class
(
t3_t
),
intent
(
inout
)
::
t3
type
(
t1_t
),
dimension
(:),
allocatable
::
p_born
allocate
(
p_born
(
1
:
size
(
t3
%
int_born
%
func
())),
&
source
=
t3
%
int_born
%
func
())
if
(
.not.
allocated
(
p_born
))
call
abort
()
if
(
size
(
p_born
)
/
=
5
)
call
abort
()
end
subroutine
evaluate
end
module
processes
program
pr66927
use
processes
type
(
t3_t
)
::
o
call
evaluate
(
o
)
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment