mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 01:51:29 +00:00
Tweak manuel2 so that the Memcheck-detected error is more reliable, and that
we never accidentally also get an undefined-condition-error. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3371
This commit is contained in:
parent
3c1778a582
commit
05cbc6b2e1
@ -3,7 +3,9 @@
|
||||
|
||||
int main ()
|
||||
{
|
||||
int *x;
|
||||
int y = 0;
|
||||
int *m = malloc(sizeof(int));
|
||||
int *x = m[0] + &y; // we know m[0] will be zero
|
||||
|
||||
printf ("x = %d\n", *x==0xDEADBEEF ? 99 : 88);
|
||||
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
Use of uninitialised value of size 4
|
||||
at 0x........: main (manuel2.c:8)
|
||||
at 0x........: main (manuel2.c:10)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user