mirror of
https://github.com/vlang/v.git
synced 2025-09-15 15:32:27 +03:00
slow_tests: fix asm_test.amd64.v (#24451)
This commit is contained in:
parent
00ef1a6c52
commit
f3baaa0fb8
1 changed files with 5 additions and 5 deletions
|
@ -100,7 +100,7 @@ fn test_inline_asm() {
|
||||||
|
|
||||||
assert util.add(8, 9, 34, 7) == 58 // test .amd64.v imported files
|
assert util.add(8, 9, 34, 7) == 58 // test .amd64.v imported files
|
||||||
|
|
||||||
mut o := Manu{}
|
mut o := &Manu{}
|
||||||
asm amd64 {
|
asm amd64 {
|
||||||
mov eax, 0
|
mov eax, 0
|
||||||
cpuid
|
cpuid
|
||||||
|
@ -108,7 +108,7 @@ fn test_inline_asm() {
|
||||||
=d (o.edx) as edx0
|
=d (o.edx) as edx0
|
||||||
=c (o.ecx) as ecx0
|
=c (o.ecx) as ecx0
|
||||||
}
|
}
|
||||||
o.str()
|
assert o.str()[0].is_capital()
|
||||||
}
|
}
|
||||||
|
|
||||||
@[packed]
|
@[packed]
|
||||||
|
@ -120,11 +120,11 @@ mut:
|
||||||
zero u8 // for string
|
zero u8 // for string
|
||||||
}
|
}
|
||||||
|
|
||||||
fn (m Manu) str() string {
|
fn (m &Manu) str() string {
|
||||||
return unsafe {
|
return unsafe {
|
||||||
string{
|
string{
|
||||||
str: &u8(&m)
|
str: m
|
||||||
len: 24
|
len: 12
|
||||||
is_lit: 1
|
is_lit: 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue