mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v2: fix tests - gen output
This commit is contained in:
parent
24dbfbcccf
commit
7f6b98669e
@ -41,7 +41,7 @@ pub fn (g mut Gen) init() {
|
|||||||
g.definitions.writeln(c_headers)
|
g.definitions.writeln(c_headers)
|
||||||
g.write_sorted_types()
|
g.write_sorted_types()
|
||||||
g.write_multi_return_types()
|
g.write_multi_return_types()
|
||||||
g.definitions.writeln('// end of definitions')
|
g.definitions.writeln('// end of definitions #endif')
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (g mut Gen) write_multi_return_types() {
|
pub fn (g mut Gen) write_multi_return_types() {
|
||||||
|
@ -14,7 +14,7 @@ typedef struct {
|
|||||||
int arg0;
|
int arg0;
|
||||||
string arg1;
|
string arg1;
|
||||||
} multi_return_int_string;
|
} multi_return_int_string;
|
||||||
// end of definitions
|
// end of definitions #endif
|
||||||
void foo(int a);
|
void foo(int a);
|
||||||
void User_inc_age(User u, int n);
|
void User_inc_age(User u, int n);
|
||||||
int get_int(string a);
|
int get_int(string a);
|
||||||
|
@ -3,7 +3,7 @@ struct User {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// multi return structs
|
// multi return structs
|
||||||
// end of definitions
|
// end of definitions #endif
|
||||||
int function1();
|
int function1();
|
||||||
void foo(int a);
|
void foo(int a);
|
||||||
void init_user();
|
void init_user();
|
||||||
|
@ -4,7 +4,7 @@ struct User {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// multi return structs
|
// multi return structs
|
||||||
// end of definitions
|
// end of definitions #endif
|
||||||
int main() {
|
int main() {
|
||||||
User user = (User){
|
User user = (User){
|
||||||
};
|
};
|
||||||
|
@ -13,7 +13,7 @@ typedef struct {
|
|||||||
string arg1;
|
string arg1;
|
||||||
} multi_return_int_string;
|
} multi_return_int_string;
|
||||||
|
|
||||||
// end of definitions
|
// end of definitions #endif
|
||||||
multi_return_int_string mr_test();
|
multi_return_int_string mr_test();
|
||||||
int testa();
|
int testa();
|
||||||
string testb(int a);
|
string testb(int a);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user