(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
dfp/
pr35620.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2" } */
       3  
       4  #ifdef __cplusplus
       5  typedef float _Decimal32 __attribute__((mode(SD)));
       6  #endif
       7  
       8  extern void foo (_Decimal32);
       9  _Decimal32 *p;
      10  
      11  extern int i;
      12  union U { _Decimal32 a; int b; } u;
      13  
      14  void
      15  blatz (void)
      16  {
      17    _Decimal32 d;
      18    u.b = i;
      19    d = u.a;
      20    foo (d);
      21  }
      22  
      23  void
      24  bar (void)
      25  {
      26    foo (*p);
      27  }