Skip to content

Commit 0727689

Browse files
[test] Add missing memmove definition for wasm tests
7ae20b7 added a memmove dependency to the embedded build, so we need to add a definition for it in the test to satisfy the linker.
1 parent 545c243 commit 0727689

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/embedded/wasm/classes.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
int putchar(int c) { return c; }
1717
void free(void *ptr) {}
18+
void *memmove(void *dest, const void *src, size_t n) {
19+
return __builtin_memmove(dest, src, n);
20+
}
1821

1922
int posix_memalign(void **memptr, size_t alignment, size_t size) {
2023
uintptr_t mem = __builtin_wasm_memory_grow(0, (size + 0xffff) / 0x10000);

0 commit comments

Comments
 (0)