1 /* PR rtl-optimization/28062 */
2 /* Original testcase by Martin Michlmayr <tbm@cyrius.com> */
3 /* C testcase by Andrew Pinski <pinskia@gcc.gnu.org> */
4 
5 struct _NSPoint
6 {
7   float x;
8   float y;
9 };
10 
11 typedef struct _NSPoint NSPoint;
12 
13 static inline NSPoint
NSMakePoint(float x,float y)14 NSMakePoint (float x, float y)
15 {
16   NSPoint point;
17   point.x = x;
18   point.y = y;
19   return point;
20 }
21 
22 static inline NSPoint
RelativePoint(NSPoint point,NSPoint refPoint)23 RelativePoint (NSPoint point, NSPoint refPoint)
24 {
25   return NSMakePoint (refPoint.x + point.x, refPoint.y + point.y);
26 }
27 
g(NSPoint refPoint)28 NSPoint g(NSPoint refPoint)
29 {
30   float pointA, pointB;
31   return RelativePoint (NSMakePoint (0, pointA), refPoint);
32 }
33