Chromium Code Reviews| Index: wasm-tests/hello-write.c |
| diff --git a/wasm-tests/hello-write.c b/wasm-tests/hello-write.c |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ecbf75dd4e630b006590157596db02dcc8e9aa72 |
| --- /dev/null |
| +++ b/wasm-tests/hello-write.c |
| @@ -0,0 +1,10 @@ |
| +#include <stdio.h> |
| +#include <string.h> |
| +#include <unistd.h> |
| + |
| +int main(int argc, const char **argv) { |
| + char *str = "Hello, World!\n"; |
| + const int len = strlen(str); |
| + write(1, str, len); |
| + return 0; |
| +} |