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

/* C99 6.3 Conversions.

   Check conversions involving fixed-point.  */

extern void abort (void);

#include "convert.h"

int main ()
{
  ALL_CONV_FLOAT (unsigned short _Accum, uhk);
  ALL_CONV_FLOAT (unsigned _Accum, uk);
  ALL_CONV_FLOAT (unsigned long _Accum, ulk);
  ALL_CONV_FLOAT (unsigned long long _Accum, ullk);

  return 0;
}