cgen: fix tests

pull/4093/head
Alexander Medvednikov 2020-03-21 13:56:18 +01:00
parent bf97afb9ed
commit 0f1371e1c9
4 changed files with 8 additions and 8 deletions

View File

@ -47,7 +47,7 @@ struct varg_int {
//
int main(int argc, char** argv) {
_init();
_vinit();
os__args = os__init_os_args(argc, (byteptr*)argv);
int a = 10;
a++;
@ -190,7 +190,7 @@ int localmod__get_int_10() {
return 10;
}
void _init() {
void _vinit() {
pi2 = pi;
}

View File

@ -76,12 +76,12 @@ void end() {
int main(int argc, char** argv) {
_init();
_vinit();
os__args = os__init_os_args(argc, (byteptr*)argv);
return 0;
}
void _init() {
void _vinit() {
}

View File

@ -63,7 +63,7 @@ void handle_expr(Expr e) {
}
int main(int argc, char** argv) {
_init();
_vinit();
os__args = os__init_os_args(argc, (byteptr*)argv);
User user = (User){
0};
@ -77,6 +77,6 @@ int main(int argc, char** argv) {
return 0;
}
void _init() {
void _vinit() {
}

View File

@ -23,7 +23,7 @@ int Foo_testb(Foo* f);
int Bar_testa(Bar* b);
int main(int argc, char** argv) {
_init();
_vinit();
os__args = os__init_os_args(argc, (byteptr*)argv);
Bar b = (Bar){
.a = 122,
@ -94,5 +94,5 @@ int Bar_testa(Bar* b) {
return 4;
}
void _init() {
void _vinit() {
}