Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libfortran-support
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
icon-libraries
libfortran-support
Commits
64500971
Commit
64500971
authored
1 year ago
by
Jonas Jucker
Committed by
Yen-Chen Chen
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
remove crashing test
parent
21c78e28
No related branches found
No related tags found
1 merge request
!64
Draft: add test for util_stride
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/fortran/test_util_stride.f90
+0
-16
0 additions, 16 deletions
test/fortran/test_util_stride.f90
with
0 additions
and
16 deletions
test/fortran/test_util_stride.f90
+
0
−
16
View file @
64500971
...
...
@@ -47,20 +47,4 @@ CONTAINS
CALL
ASSERT_EQUAL
(
f_out
(
1
),
1
)
CALL
ASSERT_EQUAL
(
f_out
(
2
),
10
)
END
SUBROUTINE
TEST_util_stride_2d
SUBROUTINE
TEST_util_get_ptrdiff
INTEGER
(
c_size_t
)
::
s
REAL
,
DIMENSION
(
1
,
10
),
TARGET
::
array
TYPE
(
c_ptr
)
::
p1
,
p2
CALL
TAG_TEST
(
"util_get_ptrdiff"
)
array
=
RESHAPE
([
1.0
,
2.0
,
3.0
,
4.0
,
5.0
,
6.0
,
7.0
,
8.0
,
9.0
,
10.0
],
[
1
,
10
])
p1
=
C_LOC
(
array
(
1
,
1
))
p2
=
C_LOC
(
array
(
1
,
10
))
PRINT
*
,
TRANSFER
(
p1
,
0_c_size_t
),
TRANSFER
(
p2
,
0_c_size_t
)
s
=
util_get_ptrdiff
(
TRANSFER
(
p1
,
0_c_size_t
),
TRANSFER
(
p2
,
0_c_size_t
))
CALL
ASSERT_EQUAL
(
s
,
14
*
SIZEOF
(
array
(
1
,
1
)))
END
SUBROUTINE
TEST_util_get_ptrdiff
END
MODULE
test_mo_util_stride
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment