* tree-loop-distribution.c (struct partition): New field recording
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20071102-1.c
blob03b015628cd3f1c0a5b930854833d2fd1f27f3fc
1 /* PR rtl-optimization/28062 */
2 /* Original testcase by Martin Michlmayr <tbm@cyrius.com> */
3 /* C testcase by Andrew Pinski <pinskia@gcc.gnu.org> */
5 struct _NSPoint
7 float x;
8 float y;
9 };
11 typedef struct _NSPoint NSPoint;
13 static inline NSPoint
14 NSMakePoint (float x, float y)
16 NSPoint point;
17 point.x = x;
18 point.y = y;
19 return point;
22 static inline NSPoint
23 RelativePoint (NSPoint point, NSPoint refPoint)
25 return NSMakePoint (refPoint.x + point.x, refPoint.y + point.y);
28 NSPoint g(NSPoint refPoint)
30 float pointA, pointB;
31 return RelativePoint (NSMakePoint (0, pointA), refPoint);