blob: 6b7332c46890ed8bbe2a16e20b39eb56ab8d1991 [file] [log] [blame] [edit]
#include <emscripten.h>
int test = 0;
EM_JS(void, async_func, (), {
Asyncify.handleSleep(wakeUp => {
setTimeout(wakeUp, 10);
});
});
void i() { async_func(); test++; }
void h() { test++; }
void g() { h(); i(); test++; }
void f() { test++; }
void e() { async_func(); test++; }
void d() { test++; }
void c() { d(); e(); test++; }
void b() { test++; }
void a() { b(); c(); test++; }
int main() { a(); f(); g(); }