1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: fix tests

This commit is contained in:
Alexander Medvednikov 2020-03-24 23:41:34 +01:00
parent 7f345e310b
commit a3046b68da
4 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ struct varg_int {
// //
int main(int argc, char** argv) { int main(int argc, char** argv) {
_vinit(); _vinit();
os__args = os__init_os_args(argc, (byteptr*)argv); _const_os__args = os__init_os_args(argc, (byteptr*)argv);
int a = 10; int a = 10;
a++; a++;
int negative = -a; int negative = -a;

View File

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

View File

@ -64,7 +64,7 @@ void handle_expr(Expr e) {
int main(int argc, char** argv) { int main(int argc, char** argv) {
_vinit(); _vinit();
os__args = os__init_os_args(argc, (byteptr*)argv); _const_os__args = os__init_os_args(argc, (byteptr*)argv);
User user = (User){ User user = (User){
.age = 0, .age = 0,
.name = tos3(""), .name = tos3(""),

View File

@ -24,7 +24,7 @@ int Bar_testa(Bar* b);
int main(int argc, char** argv) { int main(int argc, char** argv) {
_vinit(); _vinit();
os__args = os__init_os_args(argc, (byteptr*)argv); _const_os__args = os__init_os_args(argc, (byteptr*)argv);
Bar b = (Bar){ Bar b = (Bar){
.a = 122, .a = 122,
}; };