2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / jit.dg / test-compile-to-executable.c
blob2fb0bd91cc927637dcf3531474bf3511bd1e3d5e
1 #include <stdlib.h>
2 #include <stdio.h>
4 #include "libgccjit.h"
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"
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" } } */