From 16514f272fb42af6e9c7674a9bd6c9dce369231f Mon Sep 17 00:00:00 2001 From: David Terei Date: Wed, 20 Jul 2011 11:09:03 -0700 Subject: Move tests from tests/ghc-regress/* to just tests/* --- testsuite/tests/ffi/should_run/fptr01_c.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 testsuite/tests/ffi/should_run/fptr01_c.c (limited to 'testsuite/tests/ffi/should_run/fptr01_c.c') diff --git a/testsuite/tests/ffi/should_run/fptr01_c.c b/testsuite/tests/ffi/should_run/fptr01_c.c new file mode 100644 index 0000000000..0a0e1efe1c --- /dev/null +++ b/testsuite/tests/ffi/should_run/fptr01_c.c @@ -0,0 +1,29 @@ +#include + +#include "HsFFI.h" + +#include "fptr01.h" + +void f( HsInt *i ) +{ + printf( "f%d\n", (int)*i ); + fflush( stdout ); +} + +void g( HsInt *i ) +{ + printf( "g%d\n", (int)*i ); + fflush( stdout ); +} + +void h( HsInt *i ) +{ + printf( "h%d\n", (int)*i ); + fflush( stdout ); +} + +void f_env( HsInt *env, HsInt *i ) +{ + printf( "f_env %d %d\n", *env, (int)*i ); + fflush( stdout ); +} -- cgit v1.2.1