Sign in
chromium
/
external
/
github.com
/
emscripten-core
/
emscripten
/
refs/tags/1.36.13
/
.
/
tests
/
core
/
test_static_variable.c
blob: 70b413243886910789c649d91d55745d10f31ee5 [
file
] [
log
] [
blame
]
#include
<stdio.h>
struct
DATA
{
int
value
;
DATA
()
{
value
=
0
;
}
};
DATA
&
GetData
()
{
static
DATA data
;
return
data
;
}
int
main
()
{
GetData
().
value
=
10
;
printf
(
"value:%i"
,
GetData
().
value
);
}