blob: f15fbdd7355aeae87d9b290bae7749327b82ce5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#include "HsFFI.h"
#include "conc059_stub.h"
#include <unistd.h>
#include <stdio.h>
#if mingw32_HOST_OS
#include <windows.h>
#endif
void __stginit_Test(void);
int main(int argc, char *argv[])
{
hs_init(&argc,&argv);
hs_add_root(__stginit_Test);
f(500000);
#if mingw32_HOST_OS
Sleep(100);
#else
usleep(100000);
#endif
printf("exiting...\n");
hs_exit();
printf("exited.\n");
#if mingw32_HOST_OS
Sleep(1000);
#else
usleep(1000000);
#endif
exit(0);
}
|