OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [20030217-1.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* Test whether denormal floating point constants in hexadecimal notation
2
   are parsed correctly.  */
3
/* { dg-do run { target i?86-*-linux* x86_64-*-* } } */
4
/* { dg-options "-std=c99" } */
5
 
6
long double d = 0x0.0000003ffffffff00000p-16357L;
7
long double e = 0x0.0000003ffffffff00000p-16356L;
8
 
9
extern void abort (void);
10
extern void exit (int);
11
 
12
int
13
main (void)
14
{
15
  if (d != e / 2.0)
16
    abort ();
17
  exit (0);
18
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.