summaryrefslogtreecommitdiff
path: root/tests/gdimagecopyrotated/bug00320.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gdimagecopyrotated/bug00320.c')
-rw-r--r--tests/gdimagecopyrotated/bug00320.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/gdimagecopyrotated/bug00320.c b/tests/gdimagecopyrotated/bug00320.c
new file mode 100644
index 0000000..72ff363
--- /dev/null
+++ b/tests/gdimagecopyrotated/bug00320.c
@@ -0,0 +1,22 @@
+#include "gd.h"
+#include "gdtest.h"
+
+#define width 20
+
+int main()
+{
+ gdImagePtr src, dst;
+ int black;
+
+ src = gdImageCreate(10, 10);
+ black = gdImageColorAllocate(src, 0, 0, 0);
+
+ gdTestAssert(gdImageTrueColor(src) == 0);
+ dst = gdImageRotateInterpolated(src, 30.0, black);
+ gdTestAssert(dst != NULL);
+ gdTestAssert(gdImageTrueColor(src) == 0);
+
+ gdImageDestroy(src);
+ gdImageDestroy(dst);
+ return gdNumFailures();
+}