region-test.c revision b4b94579
1#include <assert.h> 2#include <stdlib.h> 3#include <stdio.h> 4#include "pixman.h" 5 6/* This used to go into an infinite loop before pixman-region.c 7 * was fixed to not use explict "short" variables 8 */ 9int 10main () 11{ 12 pixman_region32_t r1; 13 pixman_region32_t r2; 14 pixman_region32_t r3; 15 16 pixman_region32_init_rect (&r1, 0, 0, 20, 64000); 17 pixman_region32_init_rect (&r2, 0, 0, 20, 64000); 18 pixman_region32_init_rect (&r3, 0, 0, 20, 64000); 19 20 pixman_region32_subtract (&r1, &r2, &r3); 21 22} 23 24