gcc/testsuite/jit.dg/test-compile-to-executable.c
raw| 1 | #include <stdlib.h> |
| 2 | #include <stdio.h> |
| 3 | |
| 4 | #include "libgccjit.h" |
| 5 | |
| 6 | #define TEST_COMPILING_TO_FILE |
| 7 | #define OUTPUT_KIND GCC_JIT_OUTPUT_KIND_EXECUTABLE |
| 8 | #define OUTPUT_FILENAME "output-of-test-compile-to-executable.c.exe" |
| 9 | #include "harness.h" |
| 10 | #include "create-code-for-hello-world-executable.h" |
| 11 | |
| 12 | /* { dg-final { jit-verify-output-file-was-created "" } } */ |
| 13 | /* { dg-final { jit-verify-executable "hello from ./output-of-test-compile-to-executable.c.exe" } } */ |