Blob Blame History Raw
#include <stdio.h>
#include "gd.h"
#include "gdtest.h"

int main()
{
	gdImagePtr im;

	im = gdImageCreateTrueColor(300, 300);

	gdImageSetAntiAliased(im, gdTrueColorAlpha(255, 255, 255, 0));

	gdImageLine(im, -1, -1, -1, -1, gdAntiAliased);
	gdImageLine(im, 299, 299, 0, 299, gdAntiAliased);
	gdImageLine(im, 1,1, 50, 50, gdAntiAliased);

	/* Test for segfaults, if we reach this point, the test worked */
	gdImageDestroy(im);
	return 0;
}