From a5f03d96eee482cd84861fc8cefff9eb451c0cad Mon Sep 17 00:00:00 2001 From: xleroy Date: Sun, 29 Mar 2009 09:47:11 +0000 Subject: Cleaned up configure script. Distribution of CIL as an expanded source tree with changes applied (instead of original .tar.gz + patches to be applied at config time). git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1020 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- cil/test/small1/testharness.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cil/test/small1/testharness.h (limited to 'cil/test/small1/testharness.h') diff --git a/cil/test/small1/testharness.h b/cil/test/small1/testharness.h new file mode 100644 index 00000000..a1057e34 --- /dev/null +++ b/cil/test/small1/testharness.h @@ -0,0 +1,17 @@ +#ifndef printf + /* sm: this works with gcc-2.95 */ + extern int printf(const char * format, ...); +# ifdef CCURED + #pragma ccuredvararg("printf", printf(1)) +# endif +#else + /* but in gcc-3 headers it's a macro.. */ + #include /* printf */ +#endif + +extern void exit(int); + +/* Always call E with a non-zero number */ +#define E(n) { printf("Error %d\n", n); exit(n); } +#define SUCCESS { printf("Success\n"); exit(0); } + -- cgit