From a3046b68da052ce9703c81672624526007b776a2 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 24 Mar 2020 23:41:34 +0100 Subject: [PATCH] cgen: fix tests --- vlib/v/gen/tests/1.c | 2 +- vlib/v/gen/tests/2.c | 2 +- vlib/v/gen/tests/3.c | 2 +- vlib/v/gen/tests/4.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vlib/v/gen/tests/1.c b/vlib/v/gen/tests/1.c index 545fff54ba..d912bf1b1f 100644 --- a/vlib/v/gen/tests/1.c +++ b/vlib/v/gen/tests/1.c @@ -48,7 +48,7 @@ struct varg_int { // int main(int argc, char** argv) { _vinit(); - os__args = os__init_os_args(argc, (byteptr*)argv); + _const_os__args = os__init_os_args(argc, (byteptr*)argv); int a = 10; a++; int negative = -a; diff --git a/vlib/v/gen/tests/2.c b/vlib/v/gen/tests/2.c index 285fefd8a2..63e4d1d8a0 100644 --- a/vlib/v/gen/tests/2.c +++ b/vlib/v/gen/tests/2.c @@ -78,7 +78,7 @@ void end() { int main(int argc, char** argv) { _vinit(); - os__args = os__init_os_args(argc, (byteptr*)argv); + _const_os__args = os__init_os_args(argc, (byteptr*)argv); return 0; } diff --git a/vlib/v/gen/tests/3.c b/vlib/v/gen/tests/3.c index 9b1db52293..073863915c 100644 --- a/vlib/v/gen/tests/3.c +++ b/vlib/v/gen/tests/3.c @@ -64,7 +64,7 @@ void handle_expr(Expr e) { int main(int argc, char** argv) { _vinit(); - os__args = os__init_os_args(argc, (byteptr*)argv); + _const_os__args = os__init_os_args(argc, (byteptr*)argv); User user = (User){ .age = 0, .name = tos3(""), diff --git a/vlib/v/gen/tests/4.c b/vlib/v/gen/tests/4.c index 95b888998e..edeb62626a 100644 --- a/vlib/v/gen/tests/4.c +++ b/vlib/v/gen/tests/4.c @@ -24,7 +24,7 @@ int Bar_testa(Bar* b); int main(int argc, char** argv) { _vinit(); - os__args = os__init_os_args(argc, (byteptr*)argv); + _const_os__args = os__init_os_args(argc, (byteptr*)argv); Bar b = (Bar){ .a = 122, };