1
0
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:
Alexander Medvednikov 2020-06-28 14:05:10 +02:00
parent bc9f8babaa
commit 9feaff3464
2 changed files with 9 additions and 6 deletions

View File

@ -22,13 +22,15 @@ fn print_user(u User) {
fn test_add() { fn test_add() {
println('test_add()') println('test_add()')
x := 2 x := 2
y :=3 y := 3
z := x * y sum := x + y
q := y - x product := x * y
diff := y - x
print_number(x) print_number(x)
print_number(y) print_number(y)
print_number(z) print_number(sum)
print_number(q) print_number(product)
print_number(diff)
} }
fn main() { fn main() {

View File

@ -3,6 +3,7 @@ test_add()
2 2
3 3
5 5
1 6
0
end end