aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/fixed-point/convert-float-1.c
blob: b36adab570ac563f2a1db2df3c009ea73269074d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do run } */
/* { dg-options "-std=gnu99 -O0" } */

/* C99 6.3 Conversions.

   Check conversions involving fixed-point.  */

extern void abort (void);

#include "convert.h"

int main ()
{
  ALL_CONV_FLOAT (short _Fract, hr);
  ALL_CONV_FLOAT (_Fract, r);
  ALL_CONV_FLOAT (long _Fract, lr);
  ALL_CONV_FLOAT (long long _Fract, llr);

  return 0;
}