side-effect in function parameter

git-svn-id: svn+ssh://svn.cprover.org/srv/svn/cbmc/trunk@4077 6afb6bc1-c8e4-404c-8f48-9ae832c5b171
This commit is contained in:
kroening 2014-06-15 19:33:08 +00:00
parent 280dc5ec96
commit 91d37bb52f
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ int main()
// inside a typecast (function pointer) // inside a typecast (function pointer)
x=1; x=1;
(int (*)(int a[x++]))0; // This is ignored by gcc! Haha! (int (*)(int a[x++]))0; // This is ignored by gcc! Haha!
assert(x==1); assert(x==2);
// inside sizeof // inside sizeof
x=1; x=1;