1 /* This file is part of the YAZ toolkit.
2 * Copyright (C) 1995-2013 Index Data
3 * See the file LICENSE for details.
7 * \file test_shared_ptr.c
8 * \brief test shared pointer
19 #include <yaz/shptr.h>
20 #include <yaz/wrbuf.h>
25 static void test(void)
27 WRBUF w = wrbuf_alloc();
37 YAZ_SHPTR_DEC(t, wrbuf_destroy);
40 YAZ_SHPTR_DEC(t, wrbuf_destroy);
44 int main (int argc, char **argv)
46 YAZ_CHECK_INIT(argc, argv);
55 * c-file-style: "Stroustrup"
56 * indent-tabs-mode: nil
58 * vim: shiftwidth=4 tabstop=8 expandtab