v: add multi assign cgen test
parent
f7a93a69f6
commit
ee72474971
|
@ -54,9 +54,11 @@ int main() {
|
|||
string foo_a = af_idx_el.a;
|
||||
map_string_string m1 = new_map(1, sizeof(string));
|
||||
map_string_int m2 = new_map_init(2, sizeof(int), (string[2]){tos3("v"), tos3("lang"), }, (int[2]){1, 2, });
|
||||
multi_return_int_string mr_548 = mr_test();
|
||||
int mr1 = mr_548->arg[0];
|
||||
string mr2 = mr_548->arg[1];
|
||||
string ma1 = tos3("hello");
|
||||
string ma2 = tos3("vlang");
|
||||
multi_return_int_string mr_578 = mr_test();
|
||||
int mr1 = mr_578->arg[0];
|
||||
string mr2 = mr_578->arg[1];
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@ fn main() {
|
|||
mut m1 := map[string]string
|
||||
mut m2 := {'v': 1, 'lang': 2}
|
||||
|
||||
ma1, ma2 := 'hello', 'vlang'
|
||||
mr1, mr2 := mr_test()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue