OSDN Git Service

2007-02-28 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / torture / fp-int-convert-float.c
1 /* Test floating-point conversions.  Standard types and float.  */
2 /* Origin: Joseph Myers <joseph@codesourcery.com> */
3 /* { dg-do run } */
4 /* { dg-options "" } */
5
6 #include <float.h>
7 #include "fp-int-convert.h"
8
9 int
10 main (void)
11 {
12   TEST_I_F(signed char, unsigned char, float, FLT_MANT_DIG);
13   TEST_I_F(signed short, unsigned short, float, FLT_MANT_DIG);
14   TEST_I_F(signed int, unsigned int, float, FLT_MANT_DIG);
15   TEST_I_F(signed long, unsigned long, float, FLT_MANT_DIG);
16   TEST_I_F(signed long long, unsigned long long, float, FLT_MANT_DIG);
17   exit (0);
18 }