test: Add a simple new/delete test for Tox.

This can be used for some static analysis that doesn't currently survive
a full iterate loop, but can possibly survive a new+kill.
This commit is contained in:
iphydf 2024-01-23 20:08:22 +00:00
parent 1cdcf938b9
commit a05dccad13
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -0,0 +1,8 @@
#include "../toxcore/tox.h"
#include "../toxcore/ccompat.h"
int main(void) {
tox_kill(tox_new(nullptr, nullptr));
return 0;
}