Introduce d_u32align / U32_REQUIRES_ALIGNMENT, needed for
[p5sagit/p5-mst-13.2.git] / t / lib / md5-align.t
1 BEGIN {
2         chdir 't' if -d 't';
3         @INC = '../lib';
4 }
5
6 # Test that md5 works on unaligned memory blocks
7
8 print "1..1\n";
9
10 use strict;
11 use Digest::MD5 qw(md5_hex);
12
13 my $str = "\100" x 20;
14 substr($str, 0, 1, "");  # chopping off first char makes the string unaligned
15
16 #use Devel::Peek; Dump($str); 
17
18 print "not " unless md5_hex($str) eq "c7ebb510e59ee96f404f288d14cc656a";
19 print "ok 1\n";
20