blob: 0b5eac52a2b0ac83af8a45640f9bad7c253336ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/**
* Simple test case that confirms the failure of using `gdImageCreateFromHeif`
* with a NULL pointer.
*/
#include "gd.h"
#include "gdtest.h"
int main()
{
gdImagePtr im;
im = gdImageCreateFromHeif(NULL);
if (!gdTestAssert(im == NULL))
gdImageDestroy(im);
gdImageHeif(im, NULL); /* noop safely */
return gdNumFailures();
}
|