(root)/
gcc-13.2.0/
gcc/
testsuite/
jit.dg/
test-pr95306-builtin-types.c
       1  #include "libgccjit.h"
       2  
       3  #include "harness.h"
       4  
       5  void
       6  create_code (gcc_jit_context *ctxt, void *user_data)
       7  {
       8  #define CHECK_BUILTIN(NAME) \
       9    CHECK_NON_NULL (gcc_jit_context_get_builtin_function (ctxt, NAME));
      10    
      11    CHECK_BUILTIN ("__atomic_load");
      12    CHECK_BUILTIN ("__builtin_memcpy");
      13    CHECK_BUILTIN ("__builtin_sadd_overflow");
      14  
      15  #undef CHECK_BUILTIN
      16  }
      17  
      18  extern void
      19  verify_code (gcc_jit_context *ctxt, gcc_jit_result *result)
      20  {
      21    /* Verify that no errors were emitted.  */
      22    CHECK_NON_NULL (result);
      23  }