* tree-ssa-loop-manip.c (split_loop_exit_edge): Return the new block.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr28243.c
blobf74f86e3010f1ae314e000fda47b9bfe1166bf09
1 /* PR rtl-optimization/28243 */
2 /* Reported by Mike Frysinger <vapier@gentoo.org> */
4 /* { dg-do compile } */
5 /* { dg-options "-O2 -ftracer -fPIC" } */
7 struct displayfuncs {
8 void (*init) ();
9 } funcs;
11 struct gpsdisplay {
12 struct displayfuncs *funcs;
15 static void PSMyArc(double cx, double cy, double radx, double rady, double sa,
16 double ta)
18 double ea;
19 double temp;
20 ea = sa + ta;
21 while (sa < ea) {
22 temp = ((sa + 90) / 90) * 90;
23 PSDoArc(cx, sa, ea < temp ? ea : temp);
24 sa = temp;
28 static void PSDrawElipse()
30 float cx;
31 float cy;
32 float radx;
33 float rady;
34 if (radx != rady)
35 PSMyArc(cx, cy, radx, rady, 0, 360);
38 static void PSDrawFillCircle()
40 PSDrawElipse();
43 static struct displayfuncs psfuncs[] = {
44 PSDrawFillCircle
47 void _GPSDraw_CreateDisplay()
49 struct gpsdisplay *gdisp;
50 gdisp->funcs = (void *)&psfuncs;