Committed to dmalcolm/jit:

gcc/testsuite/
        * jit.dg/test-empty.c: New test case: a client that adds nothing
        to a gcc_jit_context.
---
 gcc/testsuite/ChangeLog.jit       |  4 ++++
 gcc/testsuite/jit.dg/test-empty.c | 20 ++++++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 gcc/testsuite/jit.dg/test-empty.c

diff --git a/gcc/testsuite/ChangeLog.jit b/gcc/testsuite/ChangeLog.jit
index 924030f..3ca1072 100644
--- a/gcc/testsuite/ChangeLog.jit
+++ b/gcc/testsuite/ChangeLog.jit
@@ -1,5 +1,9 @@
 2014-01-24  David Malcolm  <dmalc...@redhat.com>
 
+       * jit.dg/test-empty.c: New test case.
+
+2014-01-24  David Malcolm  <dmalc...@redhat.com>
+
        * jit.dg/harness.h (code_making_callback): Rename to...
        (create_code): ...this, and eliminate the returned
        error-handling value: test cases will simply call into the
diff --git a/gcc/testsuite/jit.dg/test-empty.c 
b/gcc/testsuite/jit.dg/test-empty.c
new file mode 100644
index 0000000..820f232
--- /dev/null
+++ b/gcc/testsuite/jit.dg/test-empty.c
@@ -0,0 +1,20 @@
+#include <stdlib.h>
+#include <stdio.h>
+
+#include "libgccjit.h"
+
+#include "harness.h"
+
+void
+create_code (gcc_jit_context *ctxt, void *user_data)
+{
+  /* Do nothing.  */
+}
+
+void
+verify_code (gcc_jit_context *ctxt, gcc_jit_result *result)
+{
+  /* We should have a non-NULL result, albeit one with nothing in it.  */
+  CHECK_NON_NULL (result);
+}
+
-- 
1.7.11.7

Reply via email to