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:
parent
7f345e310b
commit
a3046b68da
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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(""),
|
||||
|
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user