repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* include/java-interp.h: Removed extern "C" around #include <ffi.h>.
[official-gcc.git]
/
libmudflap
/
testsuite
/
libmudflap.c
/
pass19-frag.c
blob
0b00845d412c3bfc7266c3dc34876b546d09287f
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <string.h>
4
int
main
()
5
{
6
struct
foo
{
int
base
;
char
variable
[
1
]; };
/* a common idiom for variable-size structs */
7
8
struct
foo
*
b
= (
struct
foo
*)
malloc
(
sizeof
(
int
));
/* enough for base */
9
b
->
base
=
4
;
10
return
0
;
11
}