summaryrefslogtreecommitdiff
path: root/tests/tga/bug00084.c
blob: 3cf07100bdb63f8ea98b5b208e152da0fc137c16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>

#include "gd.h"
#include "gdtest.h"

int main()
{
    gdImagePtr im;
    FILE *fp = gdTestFileOpen("tga/bug00084.tga");
    if (gdTestAssert(fp == NULL)) {
        return 1;
    }
    im = gdImageCreateFromTga(fp);
    fclose(fp);
    if (gdTestAssert(im != NULL)) {
        gdImageDestroy(im);
    }
    return 0;
}