aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/fixed-point/convert-float-2.c
blob: 2a3f3e95a1b9ea40fd8e0a820f6397d75e2dc872 (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 (unsigned short _Fract, uhr);
  ALL_CONV_FLOAT (unsigned _Fract, ur);
  ALL_CONV_FLOAT (unsigned long _Fract, ulr);
  ALL_CONV_FLOAT (unsigned long long _Fract, ullr);

  return 0;
}