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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Hakan Ardo
  • Date: 2009-10-31 11:52:10 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20091031115210-crjd42sn6ezrj52c
Tags: 1:1.6.7-1
* New upstream relese (closes: #544030)
* Added lintian overrides (closes: #553265)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* bug #1929, -Inf not detected
2
 
   $Id: bug-01929.c,v 1.1 2007/02/05 21:35:58 dmix Exp $
3
 
 */
4
 
#include <stdlib.h>
5
 
#include <math.h>
6
 
 
7
 
int main ()
8
 
{
9
 
    volatile float v = 0;
10
 
    v = -1/v;
11
 
    if (isinf (v)) return 0;
12
 
    exit (__LINE__);
13
 
}