https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85449
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
simple test-case that fails (put it into src/ subfolder):
$ cat main.c
#include <jansson.h>
#include <string.h>
#include <stdlib.h>
int main ()
{
/* Encode an empty object/array, add an item, encode again */
json_t *json;
const char str[] = "[\"A\", {\"B\": \"C\", \"e\": false}, 1, null,
\"foo\"]";
char *dumped_to_string;
json = json_loads(str, 0, NULL);
if(!json) {
__builtin_abort ();
}
dumped_to_string = json_dumps(json, 0);
if (!dumped_to_string) {
__builtin_abort ();
}
return 0;
}
$ gcc main.c -I. .libs/libjansson.a && ./a.out
Aborted (core dumped)