OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [libmudflap/] [testsuite/] [libmudflap.c/] [pass29-frag.c] - Diff between revs 738 and 783

Only display areas with differences | Details | Blame | View Log

Rev 738 Rev 783
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
int main ()
int main ()
{
{
struct boo { int a; };
struct boo { int a; };
int c;
int c;
struct boo *b = malloc (sizeof (struct boo));
struct boo *b = malloc (sizeof (struct boo));
__mf_set_options ("-check-initialization");
__mf_set_options ("-check-initialization");
b->a = 0;
b->a = 0;
/* That __mf_set_options call could be here instead. */
/* That __mf_set_options call could be here instead. */
c = b->a;
c = b->a;
(void) malloc (c); /* some dummy use of c */
(void) malloc (c); /* some dummy use of c */
return 0;
return 0;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.