summaryrefslogtreecommitdiff
path: root/test/cminor/mainintegr.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/cminor/mainintegr.c')
-rw-r--r--test/cminor/mainintegr.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/cminor/mainintegr.c b/test/cminor/mainintegr.c
new file mode 100644
index 0000000..5f5bdfe
--- /dev/null
+++ b/test/cminor/mainintegr.c
@@ -0,0 +1,13 @@
+#include <stdlib.h>
+#include <stdio.h>
+
+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;
+}