| 1 |
#include <stdlib.h> |
| 2 |
#include <stdio.h> |
| 3 |
|
| 4 |
#include "libgccjit.h" |
| 5 |
|
| 6 |
#include "harness.h" |
| 7 |
|
| 8 |
#ifndef LIBGCCJIT_HAVE_gcc_jit_version |
| 9 |
#error LIBGCCJIT_HAVE_gcc_jit_version was not defined |
| 10 |
#endif |
| 11 |
|
| 12 |
void |
| 13 |
create_code (gcc_jit_context *ctxt, void *user_data) |
| 14 |
{ |
| 15 |
/* Do nothing. */ |
| 16 |
} |
| 17 |
|
| 18 |
void |
| 19 |
verify_code (gcc_jit_context *ctxt, gcc_jit_result *result) |
| 20 |
{ |
| 21 |
if (!gcc_jit_version_major ()) |
| 22 |
fail ("Major version is zero"); |
| 23 |
/* Minor and patchlevel can be zero. */ |
| 24 |
gcc_jit_version_minor (); |
| 25 |
gcc_jit_version_patchlevel (); |
| 26 |
} |