URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
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;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.