also check other direction

git-svn-id: svn+ssh://svn.cprover.org/srv/svn/cbmc/trunk@3514 6afb6bc1-c8e4-404c-8f48-9ae832c5b171
This commit is contained in:
kroening 2014-01-18 18:16:11 +00:00
parent 7bc8b1bf91
commit 0b2bef65c8
1 changed files with 4 additions and 0 deletions

View File

@ -17,4 +17,8 @@ int main()
assert(((struct some *)&signed_int)->f==1);
assert(*(int *)&a_float==1065353216);
assert(*(long int *)&a_double==4607182418800017408l);
// other direction
signed_int=1065353216;
assert(*(float *)&signed_int==1.0f);
}