mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
x64: fix tests
This commit is contained in:
parent
bc9f8babaa
commit
9feaff3464
@ -22,13 +22,15 @@ fn print_user(u User) {
|
||||
fn test_add() {
|
||||
println('test_add()')
|
||||
x := 2
|
||||
y :=3
|
||||
z := x * y
|
||||
q := y - x
|
||||
y := 3
|
||||
sum := x + y
|
||||
product := x * y
|
||||
diff := y - x
|
||||
print_number(x)
|
||||
print_number(y)
|
||||
print_number(z)
|
||||
print_number(q)
|
||||
print_number(sum)
|
||||
print_number(product)
|
||||
print_number(diff)
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
@ -3,6 +3,7 @@ test_add()
|
||||
2
|
||||
3
|
||||
5
|
||||
1
|
||||
6
|
||||
0
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user