chiark / gitweb /
Import debian/ directory from 2:8.38-3.1
[pcre3.git] / debian / jit-test.c
diff --git a/debian/jit-test.c b/debian/jit-test.c
new file mode 100644 (file)
index 0000000..e476e08
--- /dev/null
@@ -0,0 +1,17 @@
+// This little program runs the macros in the SLJIT header file
+// which auto-detect architecture. This enables us to only attempt
+// to use SLJIT on architectures that support it
+//
+#define SLJIT_CONFIG_AUTO 1
+#include "../sljit/sljitConfigInternal.h"
+
+#ifndef SLJIT_CONFIG_UNSUPPORTED
+  #warning JIT enabled
+#else
+  #error JIT not supported
+#endif
+
+int main(void)
+{
+  return 0;
+}