Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/jit.dg/test-version.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line source
#include <stdlib.h> #include <stdio.h> #include "libgccjit.h" #include "harness.h" #ifndef LIBGCCJIT_HAVE_gcc_jit_version #error LIBGCCJIT_HAVE_gcc_jit_version was not defined #endif void create_code (gcc_jit_context *ctxt, void *user_data) { /* Do nothing. */ } void verify_code (gcc_jit_context *ctxt, gcc_jit_result *result) { if (!gcc_jit_version_major ()) fail ("Major version is zero"); /* Minor and patchlevel can be zero. */ gcc_jit_version_minor (); gcc_jit_version_patchlevel (); }