PR rtl-optimization/88018
[official-gcc.git] / gcc / testsuite / jit.dg / test-error-unrecognized-dump.c
blob0b733606c0e6d27f594ead47350da9d0cb4c53d6
1 #include <stdlib.h>
2 #include <stdio.h>
4 #include "libgccjit.h"
6 #include "harness.h"
8 static char *dump;
10 void
11 create_code (gcc_jit_context *ctxt, void *user_data)
13 gcc_jit_context_enable_dump (ctxt,
14 "not-a-valid-dump-switch",
15 &dump);
18 void
19 verify_code (gcc_jit_context *ctxt, gcc_jit_result *result)
21 CHECK_VALUE (result, NULL);
23 /* Verify that the correct error message was emitted. */
24 CHECK_STRING_VALUE (gcc_jit_context_get_first_error (ctxt),
25 "unrecognized dump: not-a-valid-dump-switch");