swig/Examples/test-suite/c/global_vars_runme.c
Vadim Zeitlin dc2af47e1d Fix warning about undeclared strcmp() in a unit test
Just include the header declaring it in the test code.
2019-08-04 17:47:36 +02:00

13 lines
223 B
C

#include <assert.h>
#include <string.h>
#include "global_vars/global_vars_wrap.h"
int main(int argc, const char *argv[])
{
init();
assert(strcmp(b_get(), "string b") == 0);
assert(x == 1234);
return 0;
}