#include "cii.h"

extern void run←ciiicecream(CII←Handle dev);

static CII←RectangleRep rect1 = {10.0, 300.0, 580.0, 72.0};
static CII←RectangleRep rect2 = {300.0, 10.0, 72.0, 580.0};

extern void
run←ciitestbuildclip(CII←Handle dev)
{
	CII←BuildClipperBegin(dev);
	CII←MaskRectangle(dev, &rect1);
	CII←MaskRectangle(dev, &rect2);
	CII←BuildClipperEnd(dev);
	run←ciiicecream(dev);
	CII←Destroy(dev);
}

extern void
XR←run←ciitestbuildclip()
{
	CII←Handle dev = (CII←Handle)CII←TestDevice();
	float t[6];
	CII←GetInitialMatrix(dev, t);
	CII←SetMatrix(dev, t);
	run←ciitestbuildclip(dev);
	CII←Destroy(dev);
}