summaryrefslogtreecommitdiff
path: root/test/c
diff options
context:
space:
mode:
authorGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2012-02-07 13:38:31 +0000
committerGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2012-02-07 13:38:31 +0000
commit2594c23c95d22f838952b0b335231ba81a657b0d (patch)
tree5e964de0b29e7f2906c453aa4690a01086c08a3f /test/c
parent25b9b003178002360d666919f2e49e7f5f4a36e2 (diff)
Initializers: handle By_copy accesses (e.g. for &(glob.field))
C2C: insert the correct Evalof for structs; clean up unused memcpy stuff test/regression: run with interpreter test/regression: add test cas &(glob.field) to initializers.c git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1815 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'test/c')
-rw-r--r--test/c/sha1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/c/sha1.c b/test/c/sha1.c
index 7ea413a..84d0072 100644
--- a/test/c/sha1.c
+++ b/test/c/sha1.c
@@ -210,7 +210,9 @@ static void do_bench(int nblocks)
struct SHA1Context ctx;
unsigned char output[20];
unsigned char data[64];
+ int i;
+ for (i = 0; i < 64; i++) data[i] = i;
SHA1_init(&ctx);
for (; nblocks > 0; nblocks--)
SHA1_add_data(&ctx, data, 64);