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
5struct _NSPoint
6{
7  float x;
8  float y;
9};
10
11typedef struct _NSPoint NSPoint;
12
13static inline NSPoint
14NSMakePoint (float x, float y)
15{
16  NSPoint point;
17  point.x = x;
18  point.y = y;
19  return point;
20}
21
22static inline NSPoint
23RelativePoint (NSPoint point, NSPoint refPoint)
24{
25  return NSMakePoint (refPoint.x + point.x, refPoint.y + point.y);
26}
27
28NSPoint g(NSPoint refPoint)
29{
30  float pointA, pointB;
31  return RelativePoint (NSMakePoint (0, pointA), refPoint);
32}
33