summaryrefslogtreecommitdiff
path: root/debian/jit-test.c
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-07-13 21:26:32 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-07-13 21:26:32 +0100
commitfef6a04f189f791b9bee9f17797890b12fee495f (patch)
treeceb89d4c513787b48999a7d35105daddde016fb0 /debian/jit-test.c
parentcba4af1b7643b0da036ff78fd152f74a906c4e97 (diff)
Import debian/ directory from 2:8.38-3.1
Diffstat (limited to 'debian/jit-test.c')
-rw-r--r--debian/jit-test.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/jit-test.c b/debian/jit-test.c
new file mode 100644
index 0000000..e476e08
--- /dev/null
+++ b/debian/jit-test.c
@@ -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;
+}