libgomp: Document 'GOMP_teams4'
[official-gcc.git] / gcc / testsuite / jit.dg / test-pointer_size.c
blob337796acc2ad80968cbf02d2a0e1ba5f27169903
1 /* { dg-do compile { target x86_64-*-* } } */
3 #include <assert.h>
4 #include "libgccjit.h"
6 #include "harness.h"
8 void
9 create_code (gcc_jit_context *ctxt, void *user_data)
12 void
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));