Debian Codegraph @

gcc/testsuite/jit.dg/test-error-gcc_jit_timer_pop-too-many.c

raw
1 #include <stdlib.h>
2 #include <stdio.h>
3
4 #include "libgccjit.h"
5
6 #include "harness.h"
7
8 void
9 create_code (gcc_jit_context *ctxt, void *user_data)
10 {
11 gcc_jit_timer *timer = gcc_jit_timer_new ();
12 /* Erroneous: pop of an empty timing stack. */
13 gcc_jit_timer_pop (timer, "test");
14 gcc_jit_timer_release (timer);
15 }
16
17 void
18 verify_code (gcc_jit_context *ctxt, gcc_jit_result *result)
19 {
20 /* empty */
21 }