Skip to content

Commit 88c9040

Browse files
[embedded][wasm] Fix missing putchar symbol in test
Baremetal Wasm targets do not have stdio, so we need to provide a stub putchar.
1 parent d898001 commit 88c9040

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/embedded/classes-wasm.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <stddef.h>
1414
#include <stdint.h>
1515

16+
int putchar(int c) { return c; }
1617
void free(void *ptr) {}
1718

1819
int posix_memalign(void **memptr, size_t alignment, size_t size) {

0 commit comments

Comments
 (0)