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

ci: fix tests-sanitize-memory-clang too

This commit is contained in:
Delyan Angelov 2021-06-16 13:32:37 +03:00
parent 9dff3c36a6
commit 2f35aad8ce
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -20,10 +20,8 @@ fn resource__null() &IAbc {
fn test_fn_returning_voidptr_casted_as_interface_works() {
pi := resource__null()
$if msvc {
// TODO: understand the root reason why msvc produces something like `&IAbc(e42aff650)` here
// TODO: understand the root reason why msvc and
// `-cc clang-11 -cflags -fsanitize=memory` produce
// something like `&IAbc(e42aff650)` here
assert f(pi).contains('&IAbc(')
} $else {
assert f(pi) == '&IAbc(0)'
}
}