summaryrefslogtreecommitdiff
path: root/testsuite/tests/ffi/should_run/ffi002_c.c
blob: ccf9ac99cf16c97c0d0f1955fba35416051dd5e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
#include "ffi002_stub.h"

#include "HsFFI.h"

int main(int argc, char *argv[])
{
  int i;

  hs_init(&argc, &argv);

  for (i = 0; i < 5; i++) {
    printf("%d\n", foo(2500));
  }

  hs_exit();

  return 0;
}