repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
gcc/cp
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
md5_test.adb
blob
e687bdf4a01cacf1551e71dfb40d05328381c6f3
1
-- { dg-do run }
2
3
with
GNAT
.
MD5
;
use
GNAT
.
MD5
;
4
procedure
md5_test
is
5
TEST7
:
constant
String
:=
"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
;
6
7
Expected
:
constant
Message_Digest
:=
8
"8215ef0796a20bcaaae116d3876c664a"
;
9
MD
:
Context
;
10
begin
11
Update
(
MD
,
TEST7
);
12
if
Digest
(
MD
) /=
Expected
then
13
raise
Program_Error
;
14
end if
;
15
end
;