Skip to content

Instantly share code, notes, and snippets.

@gjedeer
Created December 13, 2014 09:33
Show Gist options
  • Save gjedeer/4fafccd1802ebc62eb26 to your computer and use it in GitHub Desktop.
Save gjedeer/4fafccd1802ebc62eb26 to your computer and use it in GitHub Desktop.
Test case for #1197
#include <tox/tox.h>
#include <stdio.h>
static Tox_Options tox_options;
Tox *tox;
int main(int argc, char **argv)
{
tox_options.ipv6enabled = TOX_ENABLE_IPV6_DEFAULT;
tox_options.udp_disabled = 0;
tox_options.proxy_enabled = 0;
fprintf(stderr, "Before tox_new()\n");
tox = tox_new(&tox_options);
fprintf(stderr, "tox_new() completed\n");
tox_kill(tox);
fprintf(stderr, "tox_kill() completed\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment