diff options
Diffstat (limited to 'Build/source/libs/gd/libgd-2.1.0/tests/png/png_null.c')
-rw-r--r-- | Build/source/libs/gd/libgd-2.1.0/tests/png/png_null.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Build/source/libs/gd/libgd-2.1.0/tests/png/png_null.c b/Build/source/libs/gd/libgd-2.1.0/tests/png/png_null.c new file mode 100644 index 00000000000..d3b5e6a963b --- /dev/null +++ b/Build/source/libs/gd/libgd-2.1.0/tests/png/png_null.c @@ -0,0 +1,17 @@ +#include "gd.h" +#include "gdtest.h" + +int main() +{ + gdImagePtr im; + + gdSetErrorMethod(gdSilence); + + im = gdImageCreateFromPng(NULL); + if (im != NULL) { + gdImageDestroy(im); + return 1; + } + gdImagePng(im, NULL); /* noop safely */ + return 0; +} |