~ubuntu-branches/ubuntu/raring/avr-libc/raring-proposed

« back to all changes in this revision

Viewing changes to tests/simulate/regression/bug-11511.c

  • Committer: Bazaar Package Importer
  • Author(s): Hakan Ardo
  • Date: 2008-08-10 09:59:16 UTC
  • mfrom: (1.1.7 upstream) (4.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080810095916-wwyigh3vt0e9s7ud
Tags: 1:1.6.2.cvs20080610-2
Added build-depends on texlive-extra-utils (closes: #493454)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* bug #11511: NaN not generated correctly by division library
 
2
   $Id: bug-11511.c,v 1.1 2007/02/05 21:35:59 dmix Exp $
 
3
 */
 
4
#include <stdlib.h>
 
5
#include <math.h>
 
6
 
 
7
int main ()
 
8
{
 
9
    volatile float a = 0, b = 0;
 
10
    float c = a/b;
 
11
    if (isnan (c)) return 0;
 
12
    exit (__LINE__);
 
13
}