1 /* { dg-do compile { target x86_64-*-* } } */
9 create_code (gcc_jit_context
*ctxt
, void *user_data
)
13 verify_code (gcc_jit_context
*ctxt
, gcc_jit_result
*result
)
15 gcc_jit_type
*int_type
=
16 gcc_jit_context_get_type (ctxt
, GCC_JIT_TYPE_INT
);
17 gcc_jit_type
*int_ptr_type
= gcc_jit_type_get_pointer (int_type
);
19 int int_ptr_size
= gcc_jit_type_get_size (int_ptr_type
);
20 CHECK_VALUE (int_ptr_size
, 8);
22 gcc_jit_type
*void_type
=
23 gcc_jit_context_get_type (ctxt
, GCC_JIT_TYPE_VOID
);
24 gcc_jit_type
*void_ptr_type
= gcc_jit_type_get_pointer (void_type
);
26 CHECK_VALUE (int_ptr_size
, gcc_jit_type_get_size (void_ptr_type
));