| 1 |
/* { dg-do compile { target x86_64-*-* } } */ |
| 2 |
|
| 3 |
#include <stdlib.h> |
| 4 |
#include <stdio.h> |
| 5 |
|
| 6 |
#include "libgccjit.h" |
| 7 |
|
| 8 |
#define TEST_COMPILING_TO_FILE |
| 9 |
#define OUTPUT_KIND GCC_JIT_OUTPUT_KIND_ASSEMBLER |
| 10 |
#define OUTPUT_FILENAME "output-of-test-output-ident.c.s" |
| 11 |
#include "harness.h" |
| 12 |
|
| 13 |
void |
| 14 |
create_code (gcc_jit_context *ctxt, void *user_data) |
| 15 |
{ |
| 16 |
/* Let's try to inject the equivalent of: |
| 17 |
#ident "My comment" |
| 18 |
*/ |
| 19 |
gcc_jit_context_set_output_ident (ctxt, "My comment"); |
| 20 |
} |
| 21 |
|
| 22 |
/* { dg-final { jit-verify-output-file-was-created "" } } */ |
| 23 |
/* { dg-final { jit-verify-assembler-output ".ident \"My comment\"" } } */ |