diff options
Diffstat (limited to 'gcc/testsuite/jit.dg/test-empty.c')
-rw-r--r-- | gcc/testsuite/jit.dg/test-empty.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/jit.dg/test-empty.c b/gcc/testsuite/jit.dg/test-empty.c new file mode 100644 index 00000000000..820f232dfee --- /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); +} + |