aboutsummaryrefslogtreecommitdiff
path: root/pixman/test/region-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'pixman/test/region-test.c')
-rw-r--r--pixman/test/region-test.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/pixman/test/region-test.c b/pixman/test/region-test.c
new file mode 100644
index 000000000..e214e9b89
--- /dev/null
+++ b/pixman/test/region-test.c
@@ -0,0 +1,23 @@
+#include <assert.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include "pixman.h"
+
+/* This used to go into an infinite loop before pixman-region.c
+ * was fixed to not use explict "short" variables
+ */
+int
+main ()
+{
+ pixman_region32_t r1;
+ pixman_region32_t r2;
+ pixman_region32_t r3;
+
+ pixman_region32_init_rect (&r1, 0, 0, 20, 64000);
+ pixman_region32_init_rect (&r2, 0, 0, 20, 64000);
+ pixman_region32_init_rect (&r3, 0, 0, 20, 64000);
+
+ pixman_region32_subtract (&r1, &r2, &r3);
+
+}
+