repo.or.cz
/
libgit2.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add noreturn declaration compatible with the MSVC compiler.
[libgit2.git]
/
tests
/
t0002-refcnt.c
blob
efa59b726a6d367badc5c39d83e86a1664616da2
1
#include
"test_lib.h"
2
#include
"common.h"
3
4
BEGIN_TEST
(
init_inc2_dec2_free
)
5
git_refcnt p
;
6
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