mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
fmt: fix eating the attribute from @[deprecated] pub type Alias = int
(fix #24968), workaround -usecache bug (#24969)
This commit is contained in:
parent
73db18bc0d
commit
6fb46cc30f
6 changed files with 27 additions and 0 deletions
|
@ -131,12 +131,19 @@ fn build_fast_tcc() {
|
|||
|
||||
fn v_self_compilation_usecache_tcc() {
|
||||
exec('unset VFLAGS')
|
||||
|
||||
exec('v wipe-cache')
|
||||
exec('v -usecache examples/hello_world.v')
|
||||
exec('./examples/hello_world')
|
||||
|
||||
exec('v wipe-cache')
|
||||
exec('v -o v2 -usecache cmd/v')
|
||||
exec('./v2 -o v3 -usecache cmd/v')
|
||||
exec('./v3 version')
|
||||
|
||||
exec('v wipe-cache')
|
||||
exec('./v3 -o tetris -usecache examples/tetris/tetris.v')
|
||||
exec('rm -f ./examples/hello_world v2 v3 tetris')
|
||||
}
|
||||
|
||||
fn test_password_input_tcc() {
|
||||
|
@ -198,13 +205,18 @@ fn v_self_compilation_gcc() {
|
|||
fn v_self_compilation_usecache_gcc() {
|
||||
exec('unset VFLAGS')
|
||||
|
||||
exec('v wipe-cache')
|
||||
exec('v -usecache examples/hello_world.v')
|
||||
exec('examples/hello_world')
|
||||
|
||||
exec('v wipe-cache')
|
||||
exec('v -o v2 -usecache cmd/v')
|
||||
exec('./v2 -o v3 -usecache cmd/v')
|
||||
exec('./v3 version')
|
||||
|
||||
exec('v wipe-cache')
|
||||
exec('./v3 -o tetris -usecache examples/tetris/tetris.v')
|
||||
exec('rm -f ./examples/hello_world v2 v3 tetris')
|
||||
}
|
||||
|
||||
fn verify_v_test_works_gcc() {
|
||||
|
@ -312,11 +324,17 @@ fn v_self_compilation_clang() {
|
|||
|
||||
fn v_self_compilation_usecache_clang() {
|
||||
exec('unset VFLAGS')
|
||||
|
||||
exec('v wipe-cache')
|
||||
exec('v -usecache examples/hello_world.v')
|
||||
exec('./examples/hello_world')
|
||||
|
||||
exec('v wipe-cache')
|
||||
exec('v -o v2 -usecache cmd/v')
|
||||
exec('./v2 -o v3 -usecache cmd/v')
|
||||
exec('./v3 version')
|
||||
|
||||
exec('v wipe-cache')
|
||||
exec('./v3 -o tetris -usecache examples/tetris/tetris.v')
|
||||
exec('rm -f ./examples/hello_world v2 v3 tetris')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue