From 2594c23c95d22f838952b0b335231ba81a657b0d Mon Sep 17 00:00:00 2001 From: xleroy Date: Tue, 7 Feb 2012 13:38:31 +0000 Subject: 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 --- test/c/sha1.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/c') diff --git a/test/c/sha1.c b/test/c/sha1.c index 7ea413a7..84d0072c 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); -- cgit