Add noreturn declaration compatible with the MSVC compiler.
[libgit2.git] / tests / t0002-refcnt.c
blobefa59b726a6d367badc5c39d83e86a1664616da2
1 #include "test_lib.h"
2 #include "common.h"
4 BEGIN_TEST(init_inc2_dec2_free)
5 git_refcnt p;
7 gitrc_init(&p);
8 gitrc_inc(&p);
9 gitrc_inc(&p);
10 must_be_true(!gitrc_dec(&p));
11 must_be_true(gitrc_dec(&p));
12 gitrc_free(&p);
13 END_TEST