aboutsummaryrefslogtreecommitdiffstats
path: root/test/regression/sizeof1.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2016-10-24 14:21:51 +0200
committerXavier Leroy <xavier.leroy@inria.fr>2016-10-24 14:34:59 +0200
commit03ab00aec5d10f4a2d048fab7f16489cf33fcc1d (patch)
tree16d5313fb0d61585f6d82c6232228d716e9f7553 /test/regression/sizeof1.c
parent2fc1f0ce18c45d1148493d58e0c848fc70c44a4d (diff)
downloadcompcert-kvx-03ab00aec5d10f4a2d048fab7f16489cf33fcc1d.tar.gz
compcert-kvx-03ab00aec5d10f4a2d048fab7f16489cf33fcc1d.zip
Update the tests and test infrastructure in test/regression
Tests updated to work with x86 64 bits. Infrastructure added: script "Runtest", with ability to have different reference outputs depending on platform or bit size.
Diffstat (limited to 'test/regression/sizeof1.c')
-rw-r--r--test/regression/sizeof1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/regression/sizeof1.c b/test/regression/sizeof1.c
index 139b1bc7..ca494622 100644
--- a/test/regression/sizeof1.c
+++ b/test/regression/sizeof1.c
@@ -34,10 +34,10 @@ char b2[sizeof(struct bits2)]; /* should be 8 */
int main()
{
printf("sizeof(struct s) = %d, sizeof(tbl) = %d\n",
- sizeof(struct s), sizeof(tbl));
+ (int) sizeof(struct s), (int) sizeof(tbl));
printf("sizeof(struct bits1) = %d, sizeof(b1) = %d\n",
- sizeof(struct bits1), sizeof(b1));
+ (int) sizeof(struct bits1), (int) sizeof(b1));
printf("sizeof(struct bits2) = %d, sizeof(b2) = %d\n",
- sizeof(struct bits2), sizeof(b2));
+ (int) sizeof(struct bits2), (int) sizeof(b2));
return 0;
}