/* { dg-do compile { target x86_64-*-* } } */ #include #include #include "libgccjit.h" #define TEST_COMPILING_TO_FILE #define OUTPUT_KIND GCC_JIT_OUTPUT_KIND_ASSEMBLER #define OUTPUT_FILENAME "output-of-test-output-ident.c.s" #include "harness.h" void create_code (gcc_jit_context *ctxt, void *user_data) { /* Let's try to inject the equivalent of: #ident "My comment" */ gcc_jit_context_set_output_ident (ctxt, "My comment"); } /* { dg-final { jit-verify-output-file-was-created "" } } */ /* { dg-final { jit-verify-assembler-output ".ident \"My comment\"" } } */