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:
parent
280dc5ec96
commit
91d37bb52f
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue