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

tests: add more -skip-unused cases to v test-all

This commit is contained in:
Delyan Angelov 2022-07-11 11:02:17 +03:00
parent 94e35b710c
commit 5498a6c263

View File

@ -85,6 +85,16 @@ fn get_all_commands() []Command {
okmsg: 'V can output a .c file, without compiling further.'
rmfile: 'hhww.c'
}
res << Command{
line: '$vexe -skip-unused examples/hello_world.v'
okmsg: 'V can compile hello world with -skip-unused.'
rmfile: 'examples/hello_world'
}
res << Command{
line: '$vexe -skip-unused -profile - examples/hello_world.v'
okmsg: 'V can compile hello world with both -skip-unused and -profile .'
rmfile: 'examples/hello_world'
}
$if linux || macos {
res << Command{
line: '$vexe run examples/hello_world.v'