(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.c-torture/
compile/
20071102-1.c
       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
      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
      23  RelativePoint (NSPoint point, NSPoint refPoint)
      24  {
      25    return NSMakePoint (refPoint.x + point.x, refPoint.y + point.y);
      26  }
      27  
      28  NSPoint g(NSPoint refPoint)
      29  {
      30    float pointA, pointB;
      31    return RelativePoint (NSMakePoint (0, pointA), refPoint);
      32  }