summaryrefslogtreecommitdiffstats
path: root/src/ghostscript-test.c
blob: ec148c6fd3ba8e4b01af493a69e22f525d1dc127 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * This file is part of MXE. See LICENSE.md for licensing information.
 */

#ifdef __WIN32__
#include <windows.h>
#endif
#include <iapi.h>

int main(int argc, char *argv[])
{
    int code;
    void *minst = NULL;

    (void)argc;
    (void)argv;

    code = gsapi_new_instance(&minst, 0);
    if (code < 0)
        return 1;

    code = gsapi_exit(minst);
    if (code < 0)
        return 1;

    gsapi_delete_instance(minst);

    return 0;
}