From 6f3a9afdda5c02dc84522fc8604addb7e5c8d7df Mon Sep 17 00:00:00 2001 From: xleroy Date: Wed, 17 Feb 2010 13:24:48 +0000 Subject: Moved test harness C files here git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1251 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- test/cminor/mainintegr.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/cminor/mainintegr.c (limited to 'test/cminor/mainintegr.c') diff --git a/test/cminor/mainintegr.c b/test/cminor/mainintegr.c new file mode 100644 index 00000000..5f5bdfe0 --- /dev/null +++ b/test/cminor/mainintegr.c @@ -0,0 +1,13 @@ +#include +#include + +extern double test(int); + +int main(int argc, char ** argv) +{ + int n; double r; + if (argc >= 2) n = atoi(argv[1]); else n = 10000; + r = test(n); + printf("integr(square, 0.0, 1.0, %d) = %g\n", n, r); + return 0; +} -- cgit