Closed
Description
Place the following code in the file test.cpp
:
#include <stdio.h>
int main()
{
printf("hello!");
fflush(stdout);
fprintf(stderr, "hello from stderr too!");
fflush(stderr);
}
and compile with emcc test.cpp -o test.html -s NO_EXIT_RUNTIME=1
. Then run the resulting test.html
in the browser.
Observed: No text is printed.
Expected: fflush should flush, and both texts should be visible.