Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenGEODE
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
TASTE
OpenGEODE
Commits
042a59b3
Commit
042a59b3
authored
Oct 04, 2020
by
Maxime Perrotin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update test case
parent
31d5a314
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
tests/testsuite/test10/Makefile
tests/testsuite/test10/Makefile
+5
-1
tests/testsuite/test10/challenge_ri.ada
tests/testsuite/test10/challenge_ri.ada
+8
-0
No files found.
tests/testsuite/test10/Makefile
View file @
042a59b3
...
...
@@ -25,7 +25,11 @@ test-qgen-gt-ada:
test-qgen-gt-c
:
$(TESTQGEN_GT_C)
$(ROOT_MODEL)
test-ada
:
challenge.ali dataview-uniq.o | test_ada.o
test-ada
:
dataview-uniq.o | test_ada.o
cp
challenge_ri.ada challenge_ri.adb
$(OPENGEODE)
challenge.pr system_structure.pr
--toAda
mono
$(ASN1SCC)
-Ada
-typePrefix
asn1Scc
-equal
*
.asn
gnat make challenge
$(GNATBIND)
-n
challenge.ali
$(GNATLINK)
-o
test_ada test_ada.o challenge.ali
-lm
./test_ada | diff expected -
...
...
tests/testsuite/test10/challenge_ri.ada
0 → 100644
View file @
042a59b3
package
body
challenge_RI
is
procedure
pow
(
a
:
in
out
asn1SccT_UInt32
;
b
:
in
out
asn1SccT_UInt32
;
res
:
out
asn1SccT_UInt32
)
is
procedure
C_Pow
(
a
:
in
out
asn1SccT_UInt32
;
b
:
in
out
asn1SccT_UInt32
;
res
:
out
asn1SccT_UInt32
)
with
Import
,
Convention
=>
C
,
Link_Name
=>
"challenge_RI_pow"
;
begin
C_Pow
(
a
,
b
,
res
);
end
pow
;
end
challenge_RI
;
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