summaryrefslogtreecommitdiff
path: root/Build/source/libs/gd/libgd-src/tests/gdimageline/gdimageline_aa_outofrange.c
blob: 5c1ed05ab03e8841f2682c5c06c625195af37039 (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;

	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 */
	return 0;
}